Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads,fileNamePrefix="Buildings_10_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.004849/0.004849, allocations: 98.3 kB / 15.73 MB, free: 6.004 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.001139/0.001139, allocations: 193.2 kB / 16.67 MB, free: 5.934 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.34/1.34, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.562/2.562, allocations: 437 MB / 0.7105 GB, free: 4.988 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 67.91 kB / 1.018 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2488/0.2501, allocations: 151.6 MB / 1.166 GB, free: 7.301 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads): time 0.004899/0.2551, allocations: 3.27 MB / 1.169 GB, free: 4.008 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.003085/0.2582, allocations: 2.003 MB / 1.171 GB, free: 1.992 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000124/0.2583, allocations: 7.938 kB / 1.171 GB, free: 1.984 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0008933/0.2592, allocations: 286.8 kB / 1.172 GB, free: 1.703 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.000503/0.2597, allocations: 242.9 kB / 1.172 GB, free: 1.465 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006716/0.2604, allocations: 287.3 kB / 1.172 GB, free: 1.184 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0004351/0.2609, allocations: 406.7 kB / 1.172 GB, free: 0.7852 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003501/0.2612, allocations: 208.5 kB / 1.173 GB, free: 0.5781 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002072/0.2614, allocations: 167.4 kB / 1.173 GB, free: 424 kB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003373/0.2618, allocations: 195.3 kB / 1.173 GB, free: 228 kB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 4.61e-05/0.2618, allocations: 20 kB / 1.173 GB, free: 208 kB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000447/0.2623, allocations: 271.6 kB / 1.173 GB, free: 15.93 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001251/0.2624, allocations: 123.6 kB / 1.173 GB, free: 15.82 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001378/0.2626, allocations: 143.3 kB / 1.174 GB, free: 15.68 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0005422/0.2631, allocations: 498.1 kB / 1.174 GB, free: 15.19 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/0.2632, allocations: 4 kB / 1.174 GB, free: 15.18 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.202e-06/0.2632, allocations: 0 / 1.174 GB, free: 15.18 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.402e-06/0.2632, allocations: 0 / 1.174 GB, free: 15.18 MB / 0.9356 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.001031/0.2642, allocations: 0.6076 MB / 1.175 GB, free: 14.53 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/0.2643, allocations: 12.03 kB / 1.175 GB, free: 14.52 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.247e-05/0.2643, allocations: 62.72 kB / 1.175 GB, free: 14.45 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009397/0.2653, allocations: 120.5 kB / 1.175 GB, free: 14.33 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003964/0.2657, allocations: 284.5 kB / 1.175 GB, free: 14.01 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.666e-05/0.2657, allocations: 24.92 kB / 1.175 GB, free: 13.98 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001247/0.2659, allocations: 36.45 kB / 1.175 GB, free: 13.95 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006785/0.2665, allocations: 445.1 kB / 1.176 GB, free: 13.48 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.517e-05/0.2666, allocations: 4 kB / 1.176 GB, free: 13.47 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.934e-05/0.2666, allocations: 15.98 kB / 1.176 GB, free: 13.46 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001396/0.2668, allocations: 44.52 kB / 1.176 GB, free: 13.41 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006039/0.2674, allocations: 361.9 kB / 1.176 GB, free: 13.06 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002463/0.2698, allocations: 2.211 MB / 1.178 GB, free: 10.65 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004089/0.2703, allocations: 276.4 kB / 1.178 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002127/0.2705, allocations: 160.8 kB / 1.179 GB, free: 10.21 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.126e-05/0.2705, allocations: 0 / 1.179 GB, free: 10.21 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.631e-05/0.2706, allocations: 42.56 kB / 1.179 GB, free: 10.16 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=22): time 1.062e-06/0.2706, allocations: 0 / 1.179 GB, free: 10.16 MB / 0.9356 GB Notification: Performance of matching and sorting (n=23): time 0.001698/0.2723, allocations: 1.061 MB / 1.18 GB, free: 9.035 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.33e-05/0.2723, allocations: 55.41 kB / 1.18 GB, free: 8.969 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002866/0.2726, allocations: 260.9 kB / 1.18 GB, free: 8.707 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.582e-05/0.2726, allocations: 33.7 kB / 1.18 GB, free: 8.668 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/0.2727, allocations: 188.4 kB / 1.18 GB, free: 8.48 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 6.635e-05/0.2728, allocations: 91.22 kB / 1.18 GB, free: 8.391 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000129/0.273, allocations: 77.64 kB / 1.18 GB, free: 8.309 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001012/0.2731, allocations: 338.8 kB / 1.181 GB, free: 7.969 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002718/0.2733, allocations: 159.9 kB / 1.181 GB, free: 7.812 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003154/0.2737, allocations: 241.6 kB / 1.181 GB, free: 7.543 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005351/0.2742, allocations: 410.8 kB / 1.181 GB, free: 7.109 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.568e-06/0.2742, allocations: 7.938 kB / 1.181 GB, free: 7.102 MB / 0.9356 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001143/0.2754, allocations: 0.6003 MB / 1.182 GB, free: 6.492 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.2754, allocations: 11.94 kB / 1.182 GB, free: 6.48 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.66e-06/0.2754, allocations: 0 / 1.182 GB, free: 6.48 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006559/0.2761, allocations: 188.9 kB / 1.182 GB, free: 6.293 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003151/0.2764, allocations: 67.89 kB / 1.182 GB, free: 6.227 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002724/0.2791, allocations: 2.488 MB / 1.185 GB, free: 3.598 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003738/0.2795, allocations: 23.97 kB / 1.185 GB, free: 3.574 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.9e-05/0.2796, allocations: 19.98 kB / 1.185 GB, free: 3.555 MB / 0.9356 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.0001568/0.2797, allocations: 161.8 kB / 1.185 GB, free: 3.387 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.95e-05/0.2798, allocations: 23.86 kB / 1.185 GB, free: 3.363 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005398/0.2803, allocations: 360.3 kB / 1.185 GB, free: 3.004 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-06/0.2804, allocations: 0 / 1.185 GB, free: 3.004 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.403e-06/0.2804, allocations: 7.938 kB / 1.185 GB, free: 2.996 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.2804, allocations: 0 / 1.185 GB, free: 2.996 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001056/0.2814, allocations: 0.8183 MB / 1.186 GB, free: 2.117 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.2814, allocations: 0 / 1.186 GB, free: 2.117 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000405/0.2819, allocations: 75.89 kB / 1.186 GB, free: 2.043 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.2819, allocations: 3.938 kB / 1.186 GB, free: 2.039 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.615e-05/0.2819, allocations: 11.98 kB / 1.186 GB, free: 2.027 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.2819, allocations: 0 / 1.186 GB, free: 2.027 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.2819, allocations: 8 kB / 1.186 GB, free: 2.02 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007168/0.2826, allocations: 0.6153 MB / 1.187 GB, free: 1.383 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001597/0.2828, allocations: 136.9 kB / 1.187 GB, free: 1.23 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.071e-05/0.2829, allocations: 8 kB / 1.187 GB, free: 1.223 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002457/0.2831, allocations: 11.98 kB / 1.187 GB, free: 1.211 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.755e-05/0.2832, allocations: 15.92 kB / 1.187 GB, free: 1.195 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.85e-05/0.2832, allocations: 11.98 kB / 1.187 GB, free: 1.184 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0002146/0.2834, allocations: 192.5 kB / 1.187 GB, free: 0.9922 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.9e-07/0.2834, allocations: 0 / 1.187 GB, free: 0.9922 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0004063/0.2838, allocations: 88 kB / 1.187 GB, free: 0.9062 MB / 0.9356 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.001003/0.2848, allocations: 1.155 MB / 1.188 GB, free: 15.72 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0008911/0.2857, allocations: 0.5333 MB / 1.189 GB, free: 15.17 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.2857, allocations: 0.625 kB / 1.189 GB, free: 15.17 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0002013/0.286, allocations: 154.3 kB / 1.189 GB, free: 15.02 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004442/0.2864, allocations: 56.27 kB / 1.189 GB, free: 14.97 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004833/0.2912, allocations: 3.711 MB / 1.193 GB, free: 11.11 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003187/0.2916, allocations: 0.7951 MB / 1.193 GB, free: 10.28 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0002194/0.2918, allocations: 78.89 kB / 1.194 GB, free: 10.2 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001422/0.292, allocations: 91.41 kB / 1.194 GB, free: 10.11 MB / 0.9512 GB Notification: Performance of SimCode: time 2.5e-07/0.292, allocations: 0 / 1.194 GB, free: 10.11 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02404/0.316, allocations: 6.921 MB / 1.2 GB, free: 3.359 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.299/9.615, allocations: 14.41 kB / 1.2 GB, free: 3.348 MB / 0.9512 GB (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads.fmu > Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches