Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R",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.001729/0.001729, allocations: 108 kB / 15.61 MB, free: 148 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.001989/0.001989, allocations: 194.7 kB / 16.53 MB, free: 6.691 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.324/1.324, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.299/2.299, allocations: 390.3 MB / 0.6647 GB, free: 472 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001355/0.001355, allocations: 59.91 kB / 0.8127 GB, free: 14.36 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5196/0.521, allocations: 140.4 MB / 0.9497 GB, free: 9.074 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R): time 0.006442/0.5275, allocations: 6.736 MB / 0.9563 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003492/0.531, allocations: 3.037 MB / 0.9593 GB, free: 1.461 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002514/0.5312, allocations: 28.59 kB / 0.9593 GB, free: 1.449 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.002803/0.534, allocations: 0.9453 MB / 0.9602 GB, free: 0.7227 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.001136/0.5352, allocations: 0.5033 MB / 0.9607 GB, free: 320 kB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.001246/0.5365, allocations: 427.5 kB / 0.9611 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.001712/0.5382, allocations: 1.221 MB / 0.9623 GB, free: 15.29 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001275/0.5395, allocations: 0.6617 MB / 0.963 GB, free: 14.93 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005668/0.5401, allocations: 468.5 kB / 0.9634 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005591/0.5406, allocations: 0.5202 MB / 0.9639 GB, free: 14.35 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0001009/0.5407, allocations: 66.56 kB / 0.964 GB, free: 14.35 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005838/0.5413, allocations: 380.7 kB / 0.9643 GB, free: 14.19 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0002861/0.5416, allocations: 307.7 kB / 0.9646 GB, free: 13.99 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0004384/0.5421, allocations: 448.7 kB / 0.9651 GB, free: 13.7 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.001152/0.5432, allocations: 1.198 MB / 0.9662 GB, free: 12.88 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.5433, allocations: 0 / 0.9662 GB, free: 12.88 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.202e-06/0.5433, allocations: 0.9688 kB / 0.9662 GB, free: 12.88 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.246e-05/0.5433, allocations: 0 / 0.9662 GB, free: 12.88 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.001874/0.5452, allocations: 1.165 MB / 0.9674 GB, free: 11.98 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.561e-05/0.5452, allocations: 9.781 kB / 0.9674 GB, free: 11.98 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001399/0.5453, allocations: 117.9 kB / 0.9675 GB, free: 11.88 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001555/0.5469, allocations: 243.9 kB / 0.9677 GB, free: 11.77 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007641/0.5477, allocations: 0.5479 MB / 0.9683 GB, free: 11.32 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.027e-05/0.5477, allocations: 43.31 kB / 0.9683 GB, free: 11.3 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001016/0.5478, allocations: 70.23 kB / 0.9684 GB, free: 11.27 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001453/0.5493, allocations: 1.083 MB / 0.9694 GB, free: 10.48 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.514e-05/0.5493, allocations: 10.81 kB / 0.9694 GB, free: 10.48 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.911e-05/0.5494, allocations: 33.02 kB / 0.9695 GB, free: 10.45 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001493/0.5496, allocations: 86.06 kB / 0.9695 GB, free: 10.43 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001147/0.5507, allocations: 0.7488 MB / 0.9703 GB, free: 10.05 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004986/0.5557, allocations: 5.893 MB / 0.976 GB, free: 4.57 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009715/0.5567, allocations: 0.5608 MB / 0.9766 GB, free: 4.266 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004318/0.5572, allocations: 325.4 kB / 0.9769 GB, free: 4.102 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.142e-05/0.5572, allocations: 4.406 kB / 0.9769 GB, free: 4.102 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.942e-05/0.5572, allocations: 46.91 kB / 0.9769 GB, free: 4.051 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=47): time 1.753e-06/0.5572, allocations: 0 / 0.9769 GB, free: 4.051 MB / 0.7325 GB Notification: Performance of matching and sorting (n=48): time 0.003768/0.561, allocations: 1.974 MB / 0.9789 GB, free: 2.766 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.662e-05/0.5611, allocations: 65.12 kB / 0.9789 GB, free: 2.691 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005709/0.5616, allocations: 0.5581 MB / 0.9795 GB, free: 2.348 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.871e-05/0.5617, allocations: 36.02 kB / 0.9795 GB, free: 2.309 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002422/0.5619, allocations: 416 kB / 0.9799 GB, free: 1.941 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001209/0.5621, allocations: 172.2 kB / 0.9801 GB, free: 1.793 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001875/0.5623, allocations: 127.2 kB / 0.9802 GB, free: 1.715 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.00013/0.5624, allocations: 382.5 kB / 0.9806 GB, free: 1.348 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000404/0.5628, allocations: 273.9 kB / 0.9808 GB, free: 1.168 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005153/0.5633, allocations: 497 kB / 0.9813 GB, free: 0.5859 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009617/0.5643, allocations: 0.8093 MB / 0.9821 GB, free: 15.68 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.5643, allocations: 0 / 0.9821 GB, free: 15.68 MB / 0.7481 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001734/0.566, allocations: 1.083 MB / 0.9831 GB, free: 14.58 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/0.5661, allocations: 8 kB / 0.9831 GB, free: 14.57 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/0.5661, allocations: 8 kB / 0.9832 GB, free: 14.57 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008105/0.5669, allocations: 283.4 kB / 0.9834 GB, free: 14.28 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004711/0.5674, allocations: 127.8 kB / 0.9835 GB, free: 14.15 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006075/0.5735, allocations: 7.137 MB / 0.9905 GB, free: 6.453 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005316/0.574, allocations: 39.97 kB / 0.9906 GB, free: 6.414 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.402e-05/0.5741, allocations: 24 kB / 0.9906 GB, free: 6.391 MB / 0.7481 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 (67): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,6,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003025/0.5744, allocations: 261.5 kB / 0.9908 GB, free: 6.125 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001102/0.5745, allocations: 71.16 kB / 0.9909 GB, free: 6.055 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001512/0.576, allocations: 0.8846 MB / 0.9918 GB, free: 5.148 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.576, allocations: 8 kB / 0.9918 GB, free: 5.141 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.576, allocations: 4 kB / 0.9918 GB, free: 5.137 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.5761, allocations: 3.984 kB / 0.9918 GB, free: 5.133 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002453/0.5785, allocations: 1.724 MB / 0.9935 GB, free: 3.32 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.048e-05/0.5785, allocations: 7.938 kB / 0.9935 GB, free: 3.312 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002722/0.5788, allocations: 63.89 kB / 0.9935 GB, free: 3.25 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007181/0.5795, allocations: 267.3 kB / 0.9938 GB, free: 2.977 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.282e-05/0.5796, allocations: 12 kB / 0.9938 GB, free: 2.965 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008515/0.5881, allocations: 7.118 MB / 1.001 GB, free: 11.28 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.5881, allocations: 7.969 kB / 1.001 GB, free: 11.27 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002429/0.5906, allocations: 0.9835 MB / 1.002 GB, free: 10.24 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003763/0.591, allocations: 188.2 kB / 1.002 GB, free: 10.04 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001386/0.5911, allocations: 15.94 kB / 1.002 GB, free: 10.02 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006409/0.5918, allocations: 27.95 kB / 1.002 GB, free: 9.996 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001463/0.5919, allocations: 43.89 kB / 1.002 GB, free: 9.953 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.321e-05/0.592, allocations: 20 kB / 1.002 GB, free: 9.934 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0006589/0.5927, allocations: 387 kB / 1.002 GB, free: 9.562 MB / 0.7637 GB Notification: Performance of sort global known variables: time 3.61e-07/0.5927, allocations: 4 kB / 1.002 GB, free: 9.559 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.001244/0.5939, allocations: 220 kB / 1.003 GB, free: 9.344 MB / 0.7637 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 (31): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002866/0.5968, allocations: 1.54 MB / 1.004 GB, free: 7.75 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.002517/0.5994, allocations: 1.326 MB / 1.005 GB, free: 6.367 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.5994, allocations: 4.125 kB / 1.005 GB, free: 6.363 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001169/0.6006, allocations: 0.897 MB / 1.006 GB, free: 5.414 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009904/0.6016, allocations: 226.6 kB / 1.006 GB, free: 5.199 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007942/0.6095, allocations: 6.515 MB / 1.013 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005511/0.6101, allocations: 1.005 MB / 1.014 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0003931/0.6105, allocations: 130 kB / 1.014 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003013/0.6108, allocations: 251.4 kB / 1.014 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of SimCode: time 2.91e-07/0.6108, allocations: 0 / 1.014 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06212/0.6729, allocations: 17.11 MB / 1.031 GB, free: 12.09 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.21/9.883, allocations: 15.97 kB / 1.031 GB, free: 12.07 MB / 0.795 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches