Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.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.Loads.Examples.DynamicLoads,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads",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.001669/0.001675, allocations: 108 kB / 15.61 MB, free: 152 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.001954/0.001954, allocations: 194.6 kB / 16.53 MB, free: 6.699 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.421/1.421, allocations: 222.9 MB / 240.2 MB, free: 4.422 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.325/2.325, allocations: 390.3 MB / 0.6647 GB, free: 480 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001421/0.001421, allocations: 59.89 kB / 0.8126 GB, free: 14.36 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5588/0.5602, allocations: 140.4 MB / 0.9497 GB, free: 9.18 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads): time 0.003906/0.5642, allocations: 3.257 MB / 0.9529 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00246/0.5667, allocations: 2.019 MB / 0.9549 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001087/0.5668, allocations: 13.47 kB / 0.9549 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0007945/0.5676, allocations: 286.1 kB / 0.9552 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003948/0.568, allocations: 231.6 kB / 0.9554 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005019/0.5685, allocations: 289.8 kB / 0.9557 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003183/0.5688, allocations: 409.5 kB / 0.9561 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003006/0.5691, allocations: 201.4 kB / 0.9562 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001654/0.5693, allocations: 171.7 kB / 0.9564 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002829/0.5696, allocations: 195.2 kB / 0.9566 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.466e-05/0.5697, allocations: 23.5 kB / 0.9566 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003485/0.57, allocations: 262.1 kB / 0.9569 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.774e-05/0.5701, allocations: 122.1 kB / 0.957 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001169/0.5702, allocations: 143.4 kB / 0.9571 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004219/0.5707, allocations: 491.2 kB / 0.9576 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.5707, allocations: 1.375 kB / 0.9576 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.152e-06/0.5707, allocations: 4 kB / 0.9576 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.753e-06/0.5707, allocations: 0 / 0.9576 GB, free: 3.312 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.000891/0.5716, allocations: 0.5981 MB / 0.9582 GB, free: 2.773 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.228e-05/0.5716, allocations: 12.69 kB / 0.9582 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.97e-05/0.5717, allocations: 61.5 kB / 0.9583 GB, free: 2.711 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009483/0.5727, allocations: 120.5 kB / 0.9584 GB, free: 2.652 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002631/0.5729, allocations: 276.4 kB / 0.9586 GB, free: 2.379 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.874e-05/0.573, allocations: 18.66 kB / 0.9586 GB, free: 2.371 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000113/0.5731, allocations: 37.47 kB / 0.9587 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006162/0.5737, allocations: 452.6 kB / 0.9591 GB, free: 2.047 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.45e-05/0.5737, allocations: 1.062 kB / 0.9591 GB, free: 2.047 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.69e-05/0.5738, allocations: 15.36 kB / 0.9591 GB, free: 2.035 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001376/0.5739, allocations: 39.44 kB / 0.9592 GB, free: 2.023 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005821/0.5745, allocations: 364.7 kB / 0.9595 GB, free: 1.848 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002044/0.5766, allocations: 2.224 MB / 0.9617 GB, free: 15.79 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004167/0.577, allocations: 273.5 kB / 0.9619 GB, free: 15.64 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002135/0.5772, allocations: 162.6 kB / 0.9621 GB, free: 15.55 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.03e-05/0.5772, allocations: 2.094 kB / 0.9621 GB, free: 15.55 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.418e-05/0.5773, allocations: 40.73 kB / 0.9621 GB, free: 15.5 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=22): time 1.493e-06/0.5773, allocations: 0 / 0.9621 GB, free: 15.5 MB / 0.7325 GB Notification: Performance of matching and sorting (n=23): time 0.001686/0.579, allocations: 1.054 MB / 0.9632 GB, free: 14.77 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.138e-05/0.579, allocations: 56.81 kB / 0.9632 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003087/0.5793, allocations: 254 kB / 0.9635 GB, free: 14.52 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.562e-05/0.5794, allocations: 30.83 kB / 0.9635 GB, free: 14.49 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001069/0.5795, allocations: 187 kB / 0.9637 GB, free: 14.32 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 6.298e-05/0.5795, allocations: 85.45 kB / 0.9638 GB, free: 14.24 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001267/0.5797, allocations: 80.36 kB / 0.9638 GB, free: 14.19 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.684e-05/0.5798, allocations: 329.6 kB / 0.9642 GB, free: 13.86 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002857/0.5801, allocations: 162.5 kB / 0.9643 GB, free: 13.78 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003308/0.5804, allocations: 244.8 kB / 0.9645 GB, free: 13.6 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005577/0.581, allocations: 406.5 kB / 0.9649 GB, free: 13.34 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.581, allocations: 3.938 kB / 0.9649 GB, free: 13.33 MB / 0.7325 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001178/0.5822, allocations: 0.599 MB / 0.9655 GB, free: 13 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/0.5822, allocations: 6.156 kB / 0.9655 GB, free: 13 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.5822, allocations: 2.781 kB / 0.9655 GB, free: 13 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006779/0.5829, allocations: 191.2 kB / 0.9657 GB, free: 12.91 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003354/0.5832, allocations: 66.52 kB / 0.9658 GB, free: 12.89 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002722/0.586, allocations: 2.513 MB / 0.9682 GB, free: 10.82 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004025/0.5864, allocations: 20.23 kB / 0.9682 GB, free: 10.82 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.492e-05/0.5864, allocations: 23.09 kB / 0.9683 GB, free: 10.8 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (32): * Single equations (assignments): 31 * 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 {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001563/0.5866, allocations: 163.7 kB / 0.9684 GB, free: 10.66 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.419e-05/0.5867, allocations: 31.52 kB / 0.9685 GB, free: 10.64 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005397/0.5872, allocations: 351.9 kB / 0.9688 GB, free: 10.43 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.5872, allocations: 6.312 kB / 0.9688 GB, free: 10.43 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.283e-06/0.5872, allocations: 0 / 0.9688 GB, free: 10.43 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.5872, allocations: 1.406 kB / 0.9688 GB, free: 10.43 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009972/0.5882, allocations: 0.8105 MB / 0.9696 GB, free: 9.809 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.5883, allocations: 1.312 kB / 0.9696 GB, free: 9.809 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004014/0.5887, allocations: 82.06 kB / 0.9697 GB, free: 9.781 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.5887, allocations: 1.406 kB / 0.9697 GB, free: 9.781 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.368e-05/0.5887, allocations: 6.625 kB / 0.9697 GB, free: 9.777 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.5887, allocations: 2.625 kB / 0.9697 GB, free: 9.777 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.5887, allocations: 0 / 0.9697 GB, free: 9.777 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007105/0.5894, allocations: 0.6102 MB / 0.9703 GB, free: 9.387 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001243/0.5896, allocations: 127.4 kB / 0.9704 GB, free: 9.262 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.813e-05/0.5896, allocations: 11.06 kB / 0.9704 GB, free: 9.254 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002492/0.5899, allocations: 14.64 kB / 0.9704 GB, free: 9.246 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.016e-05/0.5899, allocations: 27.5 kB / 0.9704 GB, free: 9.227 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.873e-05/0.59, allocations: 8.938 kB / 0.9705 GB, free: 9.223 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002157/0.5902, allocations: 187.9 kB / 0.9706 GB, free: 9.094 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.7e-07/0.5902, allocations: 0 / 0.9706 GB, free: 9.094 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004128/0.5906, allocations: 90.81 kB / 0.9707 GB, free: 9.082 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dynRC.q[1],dynRC.q[2],dynRL.psi[1],dynRL.psi[2]) * 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 (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001004/0.5916, allocations: 1.159 MB / 0.9719 GB, free: 8.156 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0009685/0.5926, allocations: 0.5775 MB / 0.9724 GB, free: 7.812 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.5926, allocations: 1.094 kB / 0.9724 GB, free: 7.812 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002065/0.5928, allocations: 147.8 kB / 0.9726 GB, free: 7.746 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000456/0.5933, allocations: 62.69 kB / 0.9726 GB, free: 7.711 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004907/0.5982, allocations: 3.677 MB / 0.9762 GB, free: 5.02 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003044/0.5985, allocations: 0.7942 MB / 0.977 GB, free: 4.27 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002423/0.5988, allocations: 75.36 kB / 0.9771 GB, free: 4.238 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001505/0.5989, allocations: 86.91 kB / 0.9771 GB, free: 4.168 MB / 0.7325 GB Notification: Performance of SimCode: time 4.81e-07/0.5989, allocations: 3.938 kB / 0.9771 GB, free: 4.164 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02532/0.6243, allocations: 6.819 MB / 0.9838 GB, free: 14.08 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.281/9.905, allocations: 12 kB / 0.9838 GB, free: 14.07 MB / 0.7481 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads_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_Loads_Examples_DynamicLoads.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches