Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00123/0.00123, allocations: 111.3 kB / 15.23 MB, free: 0.6562 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.001296/0.001296, allocations: 194.9 kB / 16.14 MB, free: 6.652 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.219/1.219, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.407/2.407, allocations: 461.9 MB / 0.7342 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001183/0.001183, allocations: 63.72 kB / 0.8985 GB, free: 36.95 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2197/0.2209, allocations: 157.4 MB / 1.052 GB, free: 8.203 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine): time 0.01363/0.2346, allocations: 13.97 MB / 1.066 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01134/0.2459, allocations: 9.392 MB / 1.075 GB, free: 0.7578 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009183/0.2469, allocations: 55.62 kB / 1.075 GB, free: 0.7031 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.003436/0.2503, allocations: 1.559 MB / 1.077 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.003037/0.2534, allocations: 1.413 MB / 1.078 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001402/0.2548, allocations: 0.6785 MB / 1.079 GB, free: 13.05 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.002817/0.2576, allocations: 3.178 MB / 1.082 GB, free: 9.867 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001644/0.2593, allocations: 1.352 MB / 1.083 GB, free: 8.48 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001169/0.2605, allocations: 0.9338 MB / 1.084 GB, free: 7.543 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001375/0.2618, allocations: 1.132 MB / 1.085 GB, free: 6.406 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0002255/0.2621, allocations: 100 kB / 1.085 GB, free: 6.309 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001312/0.2634, allocations: 0.8929 MB / 1.086 GB, free: 5.414 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0004471/0.2638, allocations: 0.5568 MB / 1.087 GB, free: 4.855 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0007212/0.2646, allocations: 0.8665 MB / 1.087 GB, free: 3.984 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001981/0.2666, allocations: 2.722 MB / 1.09 GB, free: 1.254 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.2666, allocations: 0 / 1.09 GB, free: 1.254 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.064e-06/0.2666, allocations: 3.984 kB / 1.09 GB, free: 1.25 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.695e-05/0.2666, allocations: 0 / 1.09 GB, free: 1.25 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 327 * Number of variables: 327 Notification: Performance of Generate backend data structure: time 0.003196/0.2698, allocations: 2.139 MB / 1.092 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.2698, allocations: 11.97 kB / 1.092 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002084/0.2701, allocations: 194.4 kB / 1.092 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01003/0.2801, allocations: 2.081 MB / 1.094 GB, free: 12.76 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001862/0.282, allocations: 1.201 MB / 1.096 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.584e-05/0.282, allocations: 98.66 kB / 1.096 GB, free: 11.4 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002017/0.2822, allocations: 127.8 kB / 1.096 GB, free: 11.28 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00479/0.287, allocations: 2.674 MB / 1.098 GB, free: 8.453 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.203e-05/0.2871, allocations: 7.984 kB / 1.098 GB, free: 8.445 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001555/0.2872, allocations: 55.98 kB / 1.098 GB, free: 8.391 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000546/0.2878, allocations: 178.1 kB / 1.099 GB, free: 8.215 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006424/0.2942, allocations: 2.803 MB / 1.101 GB, free: 5.402 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01185/0.3061, allocations: 10.5 MB / 1.112 GB, free: 10.31 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005842/0.3119, allocations: 2.518 MB / 1.114 GB, free: 7.73 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00267/0.3146, allocations: 1.28 MB / 1.115 GB, free: 6.445 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 6.091e-05/0.3147, allocations: 12.94 kB / 1.115 GB, free: 6.434 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.763e-05/0.3147, allocations: 43.56 kB / 1.115 GB, free: 6.383 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=89): time 2.384e-06/0.3147, allocations: 0 / 1.115 GB, free: 6.383 MB / 0.8731 GB Notification: Performance of matching and sorting (n=131): time 0.0403/0.355, allocations: 13.36 MB / 1.128 GB, free: 8.801 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.594e-05/0.3551, allocations: 68.72 kB / 1.129 GB, free: 8.723 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001164/0.3563, allocations: 1.117 MB / 1.13 GB, free: 7.59 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0001067/0.3564, allocations: 45.7 kB / 1.13 GB, free: 7.539 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004203/0.3568, allocations: 0.7155 MB / 1.13 GB, free: 6.816 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003426/0.3572, allocations: 457.4 kB / 1.131 GB, free: 6.363 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004567/0.3576, allocations: 263.4 kB / 1.131 GB, free: 6.098 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.000109/0.3577, allocations: 369.9 kB / 1.131 GB, free: 5.73 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002835/0.3606, allocations: 1.339 MB / 1.133 GB, free: 4.391 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002931/0.3635, allocations: 1.601 MB / 1.134 GB, free: 2.691 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005743/0.3693, allocations: 2.994 MB / 1.137 GB, free: 15.6 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.87e-06/0.3693, allocations: 4 kB / 1.137 GB, free: 15.6 MB / 0.9044 GB Notification: Performance of matching and sorting (n=168) (initialization): time 0.009861/0.3792, allocations: 4.442 MB / 1.142 GB, free: 11.1 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.112e-05/0.3792, allocations: 12.92 kB / 1.142 GB, free: 11.09 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.217e-05/0.3792, allocations: 8 kB / 1.142 GB, free: 11.08 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004862/0.3841, allocations: 1.432 MB / 1.143 GB, free: 9.609 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001742/0.3858, allocations: 431.2 kB / 1.143 GB, free: 9.188 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02174/0.4076, allocations: 24.55 MB / 1.167 GB, free: 14.89 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002126/0.4097, allocations: 307.7 kB / 1.168 GB, free: 14.59 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001398/0.4099, allocations: 63.91 kB / 1.168 GB, free: 14.53 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (99): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(2,4,100.0%), (1,1,100.0%), (2,4,100.0%), (3,9,100.0%), (1,1,100.0%), (1,1,100.0%), (3,9,100.0%), (3,9,100.0%), (1,1,100.0%), (3,9,100.0%), (1,1,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000682/0.4106, allocations: 441.3 kB / 1.168 GB, free: 14.09 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002516/0.4108, allocations: 166 kB / 1.168 GB, free: 13.92 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01018/0.421, allocations: 4.449 MB / 1.173 GB, free: 9.418 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.268e-06/0.421, allocations: 16 kB / 1.173 GB, free: 9.402 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.333e-05/0.4211, allocations: 12 kB / 1.173 GB, free: 9.391 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.174e-05/0.4211, allocations: 7.969 kB / 1.173 GB, free: 9.383 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01268/0.4338, allocations: 6.766 MB / 1.179 GB, free: 2.449 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.743e-06/0.4338, allocations: 4 kB / 1.179 GB, free: 2.445 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001526/0.4353, allocations: 375.4 kB / 1.18 GB, free: 2.078 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0044/0.4397, allocations: 1.315 MB / 1.181 GB, free: 0.7227 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001232/0.4399, allocations: 43.95 kB / 1.181 GB, free: 0.6797 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02006/0.4599, allocations: 23.51 MB / 1.204 GB, free: 7.426 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.4599, allocations: 0 / 1.204 GB, free: 7.426 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009169/0.4691, allocations: 4.2 MB / 1.208 GB, free: 3.133 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000683/0.4698, allocations: 458.9 kB / 1.208 GB, free: 2.664 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002262/0.4701, allocations: 27.98 kB / 1.208 GB, free: 2.637 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001712/0.4718, allocations: 303.5 kB / 1.209 GB, free: 2.34 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003396/0.4721, allocations: 128.7 kB / 1.209 GB, free: 2.215 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001167/0.4722, allocations: 47.97 kB / 1.209 GB, free: 2.168 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0008768/0.4731, allocations: 0.7526 MB / 1.21 GB, free: 1.414 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4731, allocations: 0 / 1.21 GB, free: 1.414 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.001667/0.4748, allocations: 0.5703 MB / 1.21 GB, free: 0.8438 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (67): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(1,1,100.0%), (2,4,100.0%), (1,1,100.0%), (3,9,100.0%), (1,1,100.0%), (2,4,100.0%), (1,1,100.0%), (1,1,100.0%), (3,7,100.0%), (2,4,100.0%), (3,9,100.0%), (2,4,100.0%), (3,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009383/0.4842, allocations: 4.795 MB / 1.215 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.009274/0.4935, allocations: 5.131 MB / 1.22 GB, free: 6.645 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.4935, allocations: 3.938 kB / 1.22 GB, free: 6.641 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.005814/0.4993, allocations: 3.491 MB / 1.223 GB, free: 2.98 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002067/0.5014, allocations: 0.5095 MB / 1.224 GB, free: 2.477 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03631/0.5377, allocations: 20.93 MB / 1.244 GB, free: 12.85 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009992/0.5387, allocations: 1.47 MB / 1.246 GB, free: 11.35 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.001583/0.5403, allocations: 429.6 kB / 1.246 GB, free: 10.93 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007945/0.5411, allocations: 0.6281 MB / 1.247 GB, free: 10.3 MB / 1.014 GB Notification: Performance of SimCode: time 4.51e-07/0.5411, allocations: 0 / 1.247 GB, free: 10.3 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5872/1.128, allocations: 49.84 MB / 1.295 GB, free: 179.9 MB / 1.014 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001515/1.129, allocations: 252 kB / 1.296 GB, free: 179.7 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.66/3.789, allocations: 0.625 kB / 1.296 GB, free: 179.7 MB / 1.014 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches