Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen1.I",fileNamePrefix="Buildings_latest_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_latest_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.008871/0.008871, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001711/0.001711, allocations: 200.8 kB / 16.68 MB, free: 5.969 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.384/1.384, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.775/2.775, allocations: 472.6 MB / 0.7453 GB, free: 4.559 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002486/0.002486, allocations: 67.83 kB / 1.069 GB, free: 9.223 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4203/0.4228, allocations: 159.9 MB / 1.226 GB, free: 9.215 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.006335/0.4292, allocations: 3.855 MB / 1.229 GB, free: 5.348 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.003124/0.4323, allocations: 1.726 MB / 1.231 GB, free: 3.613 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003477/0.4327, allocations: 4 kB / 1.231 GB, free: 3.609 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.001685/0.4344, allocations: 0.4902 MB / 1.231 GB, free: 3.117 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0006955/0.4351, allocations: 222.9 kB / 1.232 GB, free: 2.898 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007097/0.4359, allocations: 214.1 kB / 1.232 GB, free: 2.691 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0007484/0.4366, allocations: 478.4 kB / 1.232 GB, free: 2.223 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006471/0.4373, allocations: 369.1 kB / 1.233 GB, free: 1.863 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003144/0.4376, allocations: 191.4 kB / 1.233 GB, free: 1.676 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005064/0.4381, allocations: 211.2 kB / 1.233 GB, free: 1.469 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 6.907e-05/0.4382, allocations: 28 kB / 1.233 GB, free: 1.441 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006333/0.4388, allocations: 247.4 kB / 1.233 GB, free: 1.199 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.000154/0.439, allocations: 123.7 kB / 1.233 GB, free: 1.078 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0002096/0.4392, allocations: 179.1 kB / 1.234 GB, free: 0.9023 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0007986/0.44, allocations: 0.4943 MB / 1.234 GB, free: 416 kB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.44, allocations: 3.938 kB / 1.234 GB, free: 412 kB / 0.9825 GB Notification: Performance of FrontEnd: time 1.372e-06/0.4401, allocations: 0 / 1.234 GB, free: 412 kB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.275e-05/0.4401, allocations: 0 / 1.234 GB, free: 412 kB / 0.9825 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.001336/0.4414, allocations: 0.6445 MB / 1.235 GB, free: 15.71 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.4415, allocations: 8.031 kB / 1.235 GB, free: 15.7 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000977/0.4424, allocations: 132.6 kB / 1.235 GB, free: 15.57 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004426/0.4429, allocations: 304.2 kB / 1.235 GB, free: 15.23 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.836e-05/0.4429, allocations: 21.03 kB / 1.235 GB, free: 15.21 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.33e-05/0.443, allocations: 28.38 kB / 1.235 GB, free: 15.19 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007364/0.4437, allocations: 463.9 kB / 1.236 GB, free: 14.7 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.336e-05/0.4438, allocations: 0 / 1.236 GB, free: 14.7 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.667e-05/0.4438, allocations: 16 kB / 1.236 GB, free: 14.68 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.422e-05/0.4439, allocations: 32.55 kB / 1.236 GB, free: 14.65 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005142/0.4444, allocations: 321.9 kB / 1.236 GB, free: 14.34 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002602/0.447, allocations: 2.178 MB / 1.238 GB, free: 11.95 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004307/0.4474, allocations: 263.7 kB / 1.238 GB, free: 11.66 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002366/0.4477, allocations: 112.7 kB / 1.239 GB, free: 11.55 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.428e-05/0.4477, allocations: 4 kB / 1.239 GB, free: 11.54 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.477e-05/0.4478, allocations: 30.56 kB / 1.239 GB, free: 11.5 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=14): time 1.332e-06/0.4478, allocations: 0 / 1.239 GB, free: 11.5 MB / 0.9981 GB Notification: Performance of matching and sorting (n=14): time 0.0006839/0.4485, allocations: 307.3 kB / 1.239 GB, free: 11.18 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.15e-05/0.4485, allocations: 55.41 kB / 1.239 GB, free: 11.11 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003132/0.4488, allocations: 266.6 kB / 1.239 GB, free: 10.85 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.13e-05/0.4489, allocations: 25.7 kB / 1.239 GB, free: 10.82 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001778/0.4491, allocations: 212.3 kB / 1.239 GB, free: 10.6 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 6.839e-05/0.4491, allocations: 51.59 kB / 1.239 GB, free: 10.55 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.404e-05/0.4492, allocations: 45.94 kB / 1.239 GB, free: 10.5 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001387/0.4494, allocations: 334.8 kB / 1.24 GB, free: 10.16 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.644e-05/0.4495, allocations: 60.44 kB / 1.24 GB, free: 10.1 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001508/0.4496, allocations: 145.9 kB / 1.24 GB, free: 9.922 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002623/0.4499, allocations: 227.2 kB / 1.24 GB, free: 9.66 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.4499, allocations: 0 / 1.24 GB, free: 9.66 MB / 0.9981 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004013/0.4503, allocations: 262.4 kB / 1.24 GB, free: 9.395 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.956e-05/0.4504, allocations: 11.98 kB / 1.24 GB, free: 9.383 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/0.4504, allocations: 4 kB / 1.24 GB, free: 9.379 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001698/0.4505, allocations: 24.84 kB / 1.24 GB, free: 9.352 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001733/0.4507, allocations: 47.92 kB / 1.241 GB, free: 9.305 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001137/0.4519, allocations: 1.426 MB / 1.242 GB, free: 7.738 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001677/0.4521, allocations: 31.73 kB / 1.242 GB, free: 7.707 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.489e-05/0.4521, allocations: 8 kB / 1.242 GB, free: 7.699 MB / 0.9981 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.0001648/0.4522, allocations: 173.8 kB / 1.242 GB, free: 7.52 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.913e-05/0.4523, allocations: 23.86 kB / 1.242 GB, free: 7.496 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.906e-05/0.4524, allocations: 25.83 kB / 1.242 GB, free: 7.469 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.4524, allocations: 4 kB / 1.242 GB, free: 7.465 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.175e-06/0.4524, allocations: 0 / 1.242 GB, free: 7.465 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.4524, allocations: 3.984 kB / 1.242 GB, free: 7.461 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009215/0.4533, allocations: 0.7025 MB / 1.243 GB, free: 6.668 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.4533, allocations: 0 / 1.243 GB, free: 6.668 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.636e-05/0.4534, allocations: 23.98 kB / 1.243 GB, free: 6.645 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.778e-05/0.4535, allocations: 33.16 kB / 1.243 GB, free: 6.609 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.625e-05/0.4535, allocations: 8 kB / 1.243 GB, free: 6.602 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001171/0.4547, allocations: 1.422 MB / 1.244 GB, free: 5.043 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.4547, allocations: 7.875 kB / 1.244 GB, free: 5.035 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003544/0.4551, allocations: 316.2 kB / 1.245 GB, free: 4.691 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001242/0.4552, allocations: 120.9 kB / 1.245 GB, free: 4.555 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.913e-05/0.4553, allocations: 4 kB / 1.245 GB, free: 4.551 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000162/0.4554, allocations: 16 kB / 1.245 GB, free: 4.535 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.23e-05/0.4555, allocations: 15.92 kB / 1.245 GB, free: 4.52 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.167e-05/0.4555, allocations: 8 kB / 1.245 GB, free: 4.512 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001827/0.4557, allocations: 194 kB / 1.245 GB, free: 4.324 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4557, allocations: 0 / 1.245 GB, free: 4.324 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003745/0.4561, allocations: 71.89 kB / 1.245 GB, free: 4.254 MB / 0.9981 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.0001401/0.4562, allocations: 111.1 kB / 1.245 GB, free: 4.133 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0004532/0.4567, allocations: 274.4 kB / 1.245 GB, free: 3.852 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.4567, allocations: 0 / 1.245 GB, free: 3.852 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002163/0.4569, allocations: 178.6 kB / 1.246 GB, free: 3.664 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004771/0.4574, allocations: 76.19 kB / 1.246 GB, free: 3.598 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008643/0.4583, allocations: 0.5392 MB / 1.246 GB, free: 3.016 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003913/0.4587, allocations: 0.787 MB / 1.247 GB, free: 2.203 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001266/0.4588, allocations: 50.25 kB / 1.247 GB, free: 2.152 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.767e-05/0.4589, allocations: 19.44 kB / 1.247 GB, free: 2.133 MB / 0.9981 GB Notification: Performance of SimCode: time 2e-07/0.4589, allocations: 0 / 1.247 GB, free: 2.133 MB / 0.9981 GB Notification: Performance of Templates: time 0.6991/1.158, allocations: 2.713 MB / 1.25 GB, free: 26.2 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & ./Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches