Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen1.I",fileNamePrefix="Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor") translateModel(Buildings.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen1.I",fileNamePrefix="Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007223/0.007223, allocations: 97.38 kB / 15.73 MB, free: 6.066 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.001176/0.001176, allocations: 195.5 kB / 16.68 MB, free: 5.973 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.426/1.426, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.592/2.592, allocations: 437 MB / 0.7105 GB, free: 4.402 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001957/0.001957, allocations: 59.91 kB / 1.018 GB, free: 9.43 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.085/1.087, allocations: 151.6 MB / 1.167 GB, free: 4.035 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005961/1.093, allocations: 3.852 MB / 1.17 GB, free: 172 kB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.003758/1.097, allocations: 1.733 MB / 1.172 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002126/1.097, allocations: 4 kB / 1.172 GB, free: 14.42 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001451/1.098, allocations: 0.4916 MB / 1.173 GB, free: 13.93 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0005032/1.099, allocations: 222.9 kB / 1.173 GB, free: 13.71 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005462/1.1, allocations: 211.5 kB / 1.173 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0005012/1.1, allocations: 470.4 kB / 1.173 GB, free: 13.04 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005575/1.101, allocations: 366.1 kB / 1.174 GB, free: 12.68 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001953/1.101, allocations: 191.4 kB / 1.174 GB, free: 12.5 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003969/1.101, allocations: 215.2 kB / 1.174 GB, free: 12.29 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 5.407e-05/1.101, allocations: 31.94 kB / 1.174 GB, free: 12.25 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004418/1.102, allocations: 243.5 kB / 1.174 GB, free: 12.02 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001409/1.102, allocations: 123.7 kB / 1.174 GB, free: 11.89 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0001994/1.102, allocations: 175.1 kB / 1.175 GB, free: 11.72 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0006972/1.103, allocations: 0.5059 MB / 1.175 GB, free: 11.21 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/1.103, allocations: 0 / 1.175 GB, free: 11.21 MB / 0.9044 GB Notification: Performance of FrontEnd: time 3.817e-06/1.103, allocations: 4 kB / 1.175 GB, free: 11.21 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.036e-05/1.103, allocations: 3.938 kB / 1.175 GB, free: 11.21 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001102/1.104, allocations: 0.6349 MB / 1.176 GB, free: 10.52 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/1.104, allocations: 8.922 kB / 1.176 GB, free: 10.52 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009035/1.105, allocations: 140.6 kB / 1.176 GB, free: 10.38 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003795/1.105, allocations: 303.7 kB / 1.176 GB, free: 10.04 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.89e-05/1.105, allocations: 21.03 kB / 1.176 GB, free: 10.02 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.059e-05/1.105, allocations: 24.38 kB / 1.176 GB, free: 10 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006426/1.106, allocations: 463.9 kB / 1.177 GB, free: 9.508 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.274e-05/1.106, allocations: 0 / 1.177 GB, free: 9.508 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.939e-05/1.106, allocations: 12 kB / 1.177 GB, free: 9.496 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.962e-05/1.106, allocations: 40.47 kB / 1.177 GB, free: 9.457 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004689/1.107, allocations: 321.9 kB / 1.177 GB, free: 9.145 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002096/1.109, allocations: 2.178 MB / 1.179 GB, free: 6.754 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003543/1.109, allocations: 247.8 kB / 1.179 GB, free: 6.484 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002154/1.109, allocations: 108.8 kB / 1.18 GB, free: 6.375 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.269e-05/1.109, allocations: 4 kB / 1.18 GB, free: 6.371 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.825e-05/1.109, allocations: 38.56 kB / 1.18 GB, free: 6.324 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=14): time 1.333e-06/1.109, allocations: 0 / 1.18 GB, free: 6.324 MB / 0.9044 GB Notification: Performance of matching and sorting (n=14): time 0.0006141/1.11, allocations: 300.8 kB / 1.18 GB, free: 6.004 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.72e-05/1.11, allocations: 51.41 kB / 1.18 GB, free: 5.941 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002865/1.11, allocations: 274.5 kB / 1.18 GB, free: 5.672 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.324e-05/1.11, allocations: 29.7 kB / 1.18 GB, free: 5.637 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001344/1.111, allocations: 216.2 kB / 1.18 GB, free: 5.422 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.672e-05/1.111, allocations: 51.62 kB / 1.18 GB, free: 5.371 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.567e-05/1.111, allocations: 45.91 kB / 1.18 GB, free: 5.316 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001212/1.111, allocations: 334.8 kB / 1.181 GB, free: 4.98 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.577e-05/1.111, allocations: 56.44 kB / 1.181 GB, free: 4.926 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001535/1.111, allocations: 148.9 kB / 1.181 GB, free: 4.742 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002487/1.111, allocations: 211 kB / 1.181 GB, free: 4.496 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/1.111, allocations: 4 kB / 1.181 GB, free: 4.492 MB / 0.9044 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003912/1.112, allocations: 268.1 kB / 1.181 GB, free: 4.223 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/1.112, allocations: 4 kB / 1.181 GB, free: 4.219 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/1.112, allocations: 4.062 kB / 1.181 GB, free: 4.215 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001873/1.112, allocations: 37.22 kB / 1.181 GB, free: 4.176 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001759/1.112, allocations: 47.92 kB / 1.182 GB, free: 4.129 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001065/1.113, allocations: 1.43 MB / 1.183 GB, free: 2.555 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000162/1.113, allocations: 27.78 kB / 1.183 GB, free: 2.527 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.567e-05/1.113, allocations: 8 kB / 1.183 GB, free: 2.52 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (27): * Single equations (assignments): 26 * 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.0001521/1.114, allocations: 174.8 kB / 1.183 GB, free: 2.34 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.74e-05/1.114, allocations: 31.91 kB / 1.183 GB, free: 2.309 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.606e-05/1.114, allocations: 29.81 kB / 1.183 GB, free: 2.273 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/1.114, allocations: 4.094 kB / 1.183 GB, free: 2.27 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/1.114, allocations: 3.938 kB / 1.183 GB, free: 2.266 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/1.114, allocations: 0 / 1.183 GB, free: 2.266 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008547/1.115, allocations: 0.6947 MB / 1.184 GB, free: 1.48 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/1.115, allocations: 0 / 1.184 GB, free: 1.48 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.449e-05/1.115, allocations: 23.98 kB / 1.184 GB, free: 1.457 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.876e-05/1.115, allocations: 32.72 kB / 1.184 GB, free: 1.422 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.178e-05/1.115, allocations: 4 kB / 1.184 GB, free: 1.418 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009245/1.116, allocations: 1.414 MB / 1.185 GB, free: 15.86 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/1.116, allocations: 12.14 kB / 1.185 GB, free: 15.85 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003063/1.116, allocations: 317.2 kB / 1.186 GB, free: 15.5 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001012/1.116, allocations: 120.8 kB / 1.186 GB, free: 15.37 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.991e-05/1.116, allocations: 4 kB / 1.186 GB, free: 15.36 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001754/1.116, allocations: 19.92 kB / 1.186 GB, free: 15.34 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.652e-05/1.116, allocations: 11.92 kB / 1.186 GB, free: 15.33 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.044e-05/1.116, allocations: 4 kB / 1.186 GB, free: 15.33 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0001825/1.117, allocations: 198 kB / 1.186 GB, free: 15.14 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.2e-07/1.117, allocations: 0 / 1.186 GB, free: 15.14 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0004039/1.117, allocations: 75.89 kB / 1.186 GB, free: 15.06 MB / 0.92 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (14): * Single equations (assignments): 13 * 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 0.0001415/1.117, allocations: 103.2 kB / 1.186 GB, free: 14.95 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0004761/1.118, allocations: 270.9 kB / 1.186 GB, free: 14.67 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 5.03e-06/1.118, allocations: 4 kB / 1.186 GB, free: 14.67 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0002131/1.118, allocations: 194.5 kB / 1.187 GB, free: 14.46 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004725/1.118, allocations: 56.91 kB / 1.187 GB, free: 14.41 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008986/1.119, allocations: 0.543 MB / 1.187 GB, free: 13.83 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004057/1.12, allocations: 0.7948 MB / 1.188 GB, free: 13.01 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0001332/1.12, allocations: 46.25 kB / 1.188 GB, free: 12.96 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.018e-05/1.12, allocations: 19.44 kB / 1.188 GB, free: 12.95 MB / 0.92 GB Notification: Performance of SimCode: time 7.01e-07/1.12, allocations: 0 / 1.188 GB, free: 12.95 MB / 0.92 GB Notification: Performance of Templates: time 0.006127/1.126, allocations: 2.726 MB / 1.191 GB, free: 10.25 MB / 0.92 GB make -j1 -f Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.makefile (rm -f Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & ./Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches