Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases.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: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Loads_Examples_ThreePhases",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Loads_Examples_ThreePhases",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.001172/0.001172, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001447/0.001447, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.391/1.391, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.802/2.802, allocations: 469.4 MB / 0.742 GB, free: 7.77 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001363/0.001364, allocations: 64.58 kB / 0.9083 GB, free: 34.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2779/0.2793, allocations: 159.2 MB / 1.064 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases): time 0.01328/0.2926, allocations: 11.08 MB / 1.075 GB, free: 3.414 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.009372/0.302, allocations: 5.8 MB / 1.08 GB, free: 13.59 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001194/0.3032, allocations: 51.69 kB / 1.08 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.004486/0.3078, allocations: 1.728 MB / 1.082 GB, free: 11.81 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.003196/0.311, allocations: 1.147 MB / 1.083 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.002181/0.3132, allocations: 0.8101 MB / 1.084 GB, free: 9.852 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.002723/0.3159, allocations: 2.119 MB / 1.086 GB, free: 7.727 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001905/0.3178, allocations: 1.318 MB / 1.087 GB, free: 6.391 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001389/0.3193, allocations: 0.8368 MB / 1.088 GB, free: 5.551 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001525/0.3208, allocations: 0.9104 MB / 1.089 GB, free: 4.637 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0003703/0.3212, allocations: 116 kB / 1.089 GB, free: 4.523 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002485/0.3237, allocations: 1.185 MB / 1.09 GB, free: 3.336 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0007188/0.3244, allocations: 0.5181 MB / 1.091 GB, free: 2.816 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.001465/0.3259, allocations: 0.7888 MB / 1.091 GB, free: 2.023 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.003789/0.3297, allocations: 2.391 MB / 1.094 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.3297, allocations: 0 / 1.094 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.274e-06/0.3297, allocations: 0 / 1.094 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 2.416e-05/0.3298, allocations: 0 / 1.094 GB, free: 15.62 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 369 * Number of variables: 369 Notification: Performance of Generate backend data structure: time 0.002845/0.3326, allocations: 1.86 MB / 1.096 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.421e-05/0.3327, allocations: 12.03 kB / 1.096 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002222/0.3329, allocations: 215.4 kB / 1.096 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004334/0.3372, allocations: 0.6737 MB / 1.096 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001477/0.3387, allocations: 0.9068 MB / 1.097 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.601e-05/0.3388, allocations: 98.89 kB / 1.097 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001941/0.339, allocations: 128.2 kB / 1.098 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002849/0.3419, allocations: 2.21 MB / 1.1 GB, free: 9.184 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.655e-05/0.3419, allocations: 7.938 kB / 1.1 GB, free: 9.176 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001335/0.3421, allocations: 63.97 kB / 1.1 GB, free: 9.113 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002063/0.3423, allocations: 166.2 kB / 1.1 GB, free: 8.949 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002646/0.3449, allocations: 1.867 MB / 1.102 GB, free: 7.074 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0108/0.3558, allocations: 12.46 MB / 1.114 GB, free: 9.664 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004083/0.3599, allocations: 1.972 MB / 1.116 GB, free: 7.684 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007889/0.3607, allocations: 0.6166 MB / 1.116 GB, free: 7.062 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001478/0.3608, allocations: 94.09 kB / 1.117 GB, free: 6.953 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.767e-05/0.3609, allocations: 47.5 kB / 1.117 GB, free: 6.898 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=103): time 2.645e-06/0.3609, allocations: 7.938 kB / 1.117 GB, free: 6.891 MB / 0.8731 GB Notification: Performance of matching and sorting (n=110): time 0.005685/0.3666, allocations: 3.702 MB / 1.12 GB, free: 3.027 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.999e-05/0.3666, allocations: 64.34 kB / 1.12 GB, free: 2.949 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009868/0.3676, allocations: 0.9281 MB / 1.121 GB, free: 2.004 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 5.91e-05/0.3677, allocations: 41.7 kB / 1.121 GB, free: 1.957 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004146/0.3681, allocations: 0.7237 MB / 1.122 GB, free: 1.223 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.000264/0.3684, allocations: 390.5 kB / 1.122 GB, free: 0.8359 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003653/0.3688, allocations: 287.2 kB / 1.123 GB, free: 0.5469 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 8.921e-05/0.3689, allocations: 301.1 kB / 1.123 GB, free: 256 kB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008489/0.3697, allocations: 0.613 MB / 1.123 GB, free: 15.63 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001137/0.3709, allocations: 1.109 MB / 1.125 GB, free: 14.31 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00209/0.373, allocations: 1.828 MB / 1.126 GB, free: 12.27 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.733e-06/0.373, allocations: 8 kB / 1.126 GB, free: 12.26 MB / 0.8887 GB Notification: Performance of matching and sorting (n=195) (initialization): time 0.003153/0.3761, allocations: 2.1 MB / 1.128 GB, free: 10.12 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 2.821e-05/0.3762, allocations: 12 kB / 1.128 GB, free: 10.11 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.033e-05/0.3762, allocations: 19.98 kB / 1.128 GB, free: 10.09 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007749/0.377, allocations: 263 kB / 1.129 GB, free: 9.809 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00123/0.3782, allocations: 371.4 kB / 1.129 GB, free: 9.445 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007997/0.3862, allocations: 11.59 MB / 1.14 GB, free: 12.73 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00127/0.3875, allocations: 127.8 kB / 1.14 GB, free: 12.61 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001034/0.3876, allocations: 76.11 kB / 1.141 GB, free: 12.54 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 71 * 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 (187): * Single equations (assignments): 179 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006848/0.3883, allocations: 395.1 kB / 1.141 GB, free: 12.14 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001821/0.3885, allocations: 134.5 kB / 1.141 GB, free: 12.01 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002582/0.3911, allocations: 1.684 MB / 1.143 GB, free: 10.3 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.027e-06/0.3911, allocations: 16 kB / 1.143 GB, free: 10.28 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.3911, allocations: 4 kB / 1.143 GB, free: 10.28 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.678e-06/0.3912, allocations: 3.984 kB / 1.143 GB, free: 10.27 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004556/0.3957, allocations: 3.287 MB / 1.146 GB, free: 6.84 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.117e-06/0.3957, allocations: 8 kB / 1.146 GB, free: 6.832 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008074/0.3966, allocations: 216.3 kB / 1.146 GB, free: 6.621 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006699/0.3972, allocations: 246.6 kB / 1.146 GB, free: 6.355 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.474e-05/0.3973, allocations: 31.94 kB / 1.146 GB, free: 6.324 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007857/0.4052, allocations: 11.58 MB / 1.158 GB, free: 9.621 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/0.4052, allocations: 4 kB / 1.158 GB, free: 9.617 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002629/0.4078, allocations: 1.799 MB / 1.159 GB, free: 7.707 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005294/0.4084, allocations: 307.4 kB / 1.16 GB, free: 7.387 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002215/0.4086, allocations: 24 kB / 1.16 GB, free: 7.363 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007881/0.4094, allocations: 91.86 kB / 1.16 GB, free: 7.273 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001943/0.4096, allocations: 96.72 kB / 1.16 GB, free: 7.18 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.263e-05/0.4097, allocations: 39.98 kB / 1.16 GB, free: 7.141 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0007711/0.4105, allocations: 0.6177 MB / 1.161 GB, free: 6.516 MB / 0.92 GB Notification: Performance of sort global known variables: time 2.4e-07/0.4105, allocations: 0 / 1.161 GB, free: 6.516 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.00136/0.4118, allocations: 396 kB / 1.161 GB, free: 6.129 MB / 0.92 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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 (109): * Single equations (assignments): 101 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (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.002709/0.4146, allocations: 2.386 MB / 1.163 GB, free: 3.621 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.00404/0.4186, allocations: 2.871 MB / 1.166 GB, free: 0.6484 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/0.4186, allocations: 0 / 1.166 GB, free: 0.6484 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.001974/0.4206, allocations: 1.637 MB / 1.168 GB, free: 14.91 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001737/0.4224, allocations: 355.1 kB / 1.168 GB, free: 14.57 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01469/0.4371, allocations: 12.01 MB / 1.18 GB, free: 1.598 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008374/0.4379, allocations: 1.323 MB / 1.181 GB, free: 248 kB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.001018/0.439, allocations: 355.3 kB / 1.181 GB, free: 15.89 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006177/0.4396, allocations: 0.5344 MB / 1.182 GB, free: 15.36 MB / 0.9512 GB Notification: Performance of SimCode: time 5.71e-07/0.4396, allocations: 0 / 1.182 GB, free: 15.36 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0677/0.5073, allocations: 27.91 MB / 1.209 GB, free: 3.812 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.06/10.56, allocations: 14.8 kB / 1.209 GB, free: 3.801 MB / 0.9669 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Loads_Examples_ThreePhases.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Loads_Examples_ThreePhases.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches