Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance") translateModel(Buildings.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001692/0.001692, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002921/0.002921, allocations: 198.1 kB / 16.14 MB, free: 6.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.424/1.424, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.744/2.744, allocations: 461.9 MB / 0.7342 GB, free: 15.07 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001194/0.001194, allocations: 69.22 kB / 0.8984 GB, free: 37.25 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3004/0.3016, allocations: 157.4 MB / 1.052 GB, free: 8.875 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004156/0.3058, allocations: 3.126 MB / 1.055 GB, free: 5.73 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001855/0.3077, allocations: 1.328 MB / 1.056 GB, free: 4.395 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.755e-05/0.3078, allocations: 7.938 kB / 1.056 GB, free: 4.387 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0008643/0.3086, allocations: 314.9 kB / 1.057 GB, free: 4.078 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000277/0.3089, allocations: 143.4 kB / 1.057 GB, free: 3.938 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002823/0.3092, allocations: 119.8 kB / 1.057 GB, free: 3.82 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003713/0.3096, allocations: 438.8 kB / 1.057 GB, free: 3.391 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002585/0.3099, allocations: 156.3 kB / 1.058 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001139/0.31, allocations: 111.5 kB / 1.058 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002579/0.3103, allocations: 143.5 kB / 1.058 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.949e-05/0.3103, allocations: 12 kB / 1.058 GB, free: 2.98 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000298/0.3106, allocations: 203.6 kB / 1.058 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.089e-05/0.3107, allocations: 75.8 kB / 1.058 GB, free: 2.707 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001116/0.3108, allocations: 107.5 kB / 1.058 GB, free: 2.602 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003518/0.3112, allocations: 339.2 kB / 1.059 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.3112, allocations: 0 / 1.059 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.32e-07/0.3112, allocations: 0 / 1.059 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.268e-06/0.3112, allocations: 4 kB / 1.059 GB, free: 2.266 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0007218/0.3119, allocations: 0.5155 MB / 1.059 GB, free: 1.699 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.309e-05/0.312, allocations: 8.031 kB / 1.059 GB, free: 1.691 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005798/0.3125, allocations: 80.58 kB / 1.059 GB, free: 1.613 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002583/0.3128, allocations: 243.9 kB / 1.059 GB, free: 1.336 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.471e-05/0.3128, allocations: 16.75 kB / 1.059 GB, free: 1.32 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.125e-05/0.3129, allocations: 20.36 kB / 1.059 GB, free: 1.301 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004169/0.3133, allocations: 295.5 kB / 1.06 GB, free: 0.9883 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/0.3133, allocations: 0 / 1.06 GB, free: 0.9883 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.49e-05/0.3133, allocations: 8 kB / 1.06 GB, free: 0.9805 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.236e-05/0.3134, allocations: 16.36 kB / 1.06 GB, free: 0.9648 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000296/0.3137, allocations: 197 kB / 1.06 GB, free: 0.7734 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001369/0.3151, allocations: 1.472 MB / 1.061 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002359/0.3153, allocations: 179.6 kB / 1.061 GB, free: 14.94 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.794e-05/0.3154, allocations: 32.8 kB / 1.062 GB, free: 14.9 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 7.374e-06/0.3154, allocations: 0 / 1.062 GB, free: 14.9 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.892e-05/0.3154, allocations: 38.48 kB / 1.062 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.052e-06/0.3154, allocations: 0 / 1.062 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0004425/0.3159, allocations: 227.4 kB / 1.062 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.18e-05/0.3159, allocations: 55.34 kB / 1.062 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001779/0.3161, allocations: 203.4 kB / 1.062 GB, free: 14.33 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.54e-05/0.3161, allocations: 29.7 kB / 1.062 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.771e-05/0.3162, allocations: 163.8 kB / 1.062 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.979e-05/0.3162, allocations: 23.7 kB / 1.062 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.405e-05/0.3163, allocations: 37.62 kB / 1.062 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.337e-05/0.3164, allocations: 330.8 kB / 1.063 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.749e-05/0.3165, allocations: 35.97 kB / 1.063 GB, free: 13.7 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.26e-05/0.3166, allocations: 102.6 kB / 1.063 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001617/0.3167, allocations: 144.4 kB / 1.063 GB, free: 13.4 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.3168, allocations: 0 / 1.063 GB, free: 13.4 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002928/0.3171, allocations: 186.1 kB / 1.063 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.474e-05/0.3171, allocations: 8 kB / 1.063 GB, free: 13.2 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.578e-06/0.3171, allocations: 0 / 1.063 GB, free: 13.2 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001445/0.3172, allocations: 37.11 kB / 1.063 GB, free: 13.16 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001067/0.3174, allocations: 24 kB / 1.063 GB, free: 13.14 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009348/0.3183, allocations: 1.331 MB / 1.064 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001162/0.3184, allocations: 11.84 kB / 1.064 GB, free: 11.65 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.422e-05/0.3184, allocations: 12 kB / 1.064 GB, free: 11.64 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001159/0.3186, allocations: 141.8 kB / 1.065 GB, free: 11.49 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.922e-05/0.3186, allocations: 15.75 kB / 1.065 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.843e-05/0.3186, allocations: 21.39 kB / 1.065 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.3187, allocations: 4.094 kB / 1.065 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.234e-06/0.3187, allocations: 8.031 kB / 1.065 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.913e-06/0.3187, allocations: 0 / 1.065 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004658/0.3191, allocations: 447.2 kB / 1.065 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.3192, allocations: 4 kB / 1.065 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.718e-05/0.3192, allocations: 4 kB / 1.065 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.086e-05/0.3193, allocations: 24.84 kB / 1.065 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.817e-06/0.3193, allocations: 0 / 1.065 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008311/0.3201, allocations: 1.311 MB / 1.066 GB, free: 9.473 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.3202, allocations: 7.969 kB / 1.066 GB, free: 9.465 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002047/0.3204, allocations: 208.8 kB / 1.067 GB, free: 9.242 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.43e-05/0.3204, allocations: 96.91 kB / 1.067 GB, free: 9.129 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.171e-05/0.3205, allocations: 3.938 kB / 1.067 GB, free: 9.125 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001119/0.3206, allocations: 7.984 kB / 1.067 GB, free: 9.117 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.777e-05/0.3206, allocations: 4 kB / 1.067 GB, free: 9.113 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.995e-06/0.3206, allocations: 4 kB / 1.067 GB, free: 9.109 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001175/0.3207, allocations: 148.3 kB / 1.067 GB, free: 8.965 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3208, allocations: 0 / 1.067 GB, free: 8.965 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003252/0.3211, allocations: 51.84 kB / 1.067 GB, free: 8.914 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 8.989e-05/0.3212, allocations: 99.25 kB / 1.067 GB, free: 8.805 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003309/0.3215, allocations: 207 kB / 1.067 GB, free: 8.59 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3215, allocations: 4.062 kB / 1.067 GB, free: 8.586 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000147/0.3217, allocations: 158.6 kB / 1.067 GB, free: 8.418 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003586/0.3221, allocations: 35.88 kB / 1.067 GB, free: 8.387 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005911/0.3227, allocations: 425.5 kB / 1.068 GB, free: 7.945 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002819/0.3229, allocations: 0.7517 MB / 1.068 GB, free: 7.168 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 9.794e-05/0.3231, allocations: 25.53 kB / 1.068 GB, free: 7.145 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.403e-05/0.3231, allocations: 15.44 kB / 1.068 GB, free: 7.129 MB / 0.8262 GB Notification: Performance of SimCode: time 3.41e-07/0.3231, allocations: 0 / 1.068 GB, free: 7.129 MB / 0.8262 GB Notification: Performance of Templates: time 0.004169/0.3273, allocations: 1.693 MB / 1.07 GB, free: 5.457 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & ./Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches