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.006867/0.006867, allocations: 101.5 kB / 15.73 MB, free: 5.992 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.00136/0.001359, allocations: 197.5 kB / 16.67 MB, free: 5.918 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.369/1.369, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.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.277/2.277, allocations: 390.2 MB / 0.6648 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001438/0.001438, allocations: 64.14 kB / 0.9504 GB, free: 8.168 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8404/0.8418, allocations: 140.4 MB / 1.087 GB, free: 5.145 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads): time 0.004806/0.8467, allocations: 3.256 MB / 1.091 GB, free: 2.945 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003104/0.8498, allocations: 2.021 MB / 1.093 GB, free: 1.586 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001723/0.85, allocations: 9.031 kB / 1.093 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0009269/0.851, allocations: 286 kB / 1.093 GB, free: 1.414 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0006577/0.8517, allocations: 246.3 kB / 1.093 GB, free: 1.277 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008571/0.8525, allocations: 277.8 kB / 1.093 GB, free: 1.152 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0005873/0.8531, allocations: 411.6 kB / 1.094 GB, free: 0.9805 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003986/0.8535, allocations: 198.8 kB / 1.094 GB, free: 0.8984 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002589/0.8538, allocations: 172.8 kB / 1.094 GB, free: 0.8242 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004324/0.8543, allocations: 198.5 kB / 1.094 GB, free: 0.7461 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.423e-05/0.8543, allocations: 23.56 kB / 1.094 GB, free: 0.7461 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005517/0.8549, allocations: 261.6 kB / 1.095 GB, free: 0.6641 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001667/0.8551, allocations: 121.1 kB / 1.095 GB, free: 0.6172 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001746/0.8552, allocations: 147.5 kB / 1.095 GB, free: 0.5312 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0007685/0.856, allocations: 495 kB / 1.095 GB, free: 380 kB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.856, allocations: 0 / 1.095 GB, free: 380 kB / 0.8575 GB Notification: Performance of FrontEnd: time 1.683e-06/0.856, allocations: 0 / 1.095 GB, free: 380 kB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.047e-06/0.856, allocations: 5.219 kB / 1.095 GB, free: 376 kB / 0.8575 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.001122/0.8572, allocations: 0.5937 MB / 1.096 GB, free: 15.87 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 5.049e-05/0.8572, allocations: 10.19 kB / 1.096 GB, free: 15.87 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001009/0.8573, allocations: 63.62 kB / 1.096 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001075/0.8584, allocations: 119.5 kB / 1.096 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000517/0.859, allocations: 287.6 kB / 1.096 GB, free: 15.54 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.214e-05/0.859, allocations: 18.97 kB / 1.096 GB, free: 15.53 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001591/0.8592, allocations: 43.08 kB / 1.096 GB, free: 15.51 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009428/0.8601, allocations: 458.3 kB / 1.097 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.961e-05/0.8601, allocations: 0.6094 kB / 1.097 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.7e-05/0.8602, allocations: 12.11 kB / 1.097 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001658/0.8604, allocations: 39.64 kB / 1.097 GB, free: 15.26 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007777/0.8612, allocations: 369.6 kB / 1.097 GB, free: 15.14 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002724/0.8639, allocations: 2.215 MB / 1.099 GB, free: 13.29 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005545/0.8645, allocations: 271 kB / 1.1 GB, free: 13.18 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002903/0.8648, allocations: 162 kB / 1.1 GB, free: 13.11 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 2.775e-05/0.8648, allocations: 1.938 kB / 1.1 GB, free: 13.11 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.257e-05/0.8648, allocations: 33.34 kB / 1.1 GB, free: 13.07 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=22): time 1.943e-06/0.8648, allocations: 0 / 1.1 GB, free: 13.07 MB / 0.8731 GB Notification: Performance of matching and sorting (n=23): time 0.002061/0.8669, allocations: 1.061 MB / 1.101 GB, free: 12.43 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.497e-05/0.867, allocations: 55.36 kB / 1.101 GB, free: 12.37 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000348/0.8673, allocations: 254.1 kB / 1.101 GB, free: 12.21 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.62e-05/0.8673, allocations: 34.73 kB / 1.101 GB, free: 12.18 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001172/0.8675, allocations: 189.8 kB / 1.101 GB, free: 12.01 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 6.939e-05/0.8675, allocations: 82.55 kB / 1.102 GB, free: 11.95 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001424/0.8677, allocations: 73.95 kB / 1.102 GB, free: 11.91 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001322/0.8678, allocations: 336 kB / 1.102 GB, free: 11.59 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003082/0.8681, allocations: 160.1 kB / 1.102 GB, free: 11.53 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003757/0.8685, allocations: 243.3 kB / 1.102 GB, free: 11.38 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006391/0.8692, allocations: 403.8 kB / 1.103 GB, free: 11.15 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.793e-06/0.8692, allocations: 8.938 kB / 1.103 GB, free: 11.14 MB / 0.8731 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.00147/0.8707, allocations: 0.5998 MB / 1.103 GB, free: 10.9 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 3.004e-05/0.8707, allocations: 7 kB / 1.103 GB, free: 10.9 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/0.8707, allocations: 6.562 kB / 1.103 GB, free: 10.9 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007734/0.8715, allocations: 195.8 kB / 1.103 GB, free: 10.85 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003657/0.8719, allocations: 62.05 kB / 1.104 GB, free: 10.84 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003142/0.875, allocations: 2.495 MB / 1.106 GB, free: 9.027 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004112/0.8755, allocations: 26.75 kB / 1.106 GB, free: 9.02 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.184e-05/0.8755, allocations: 12.92 kB / 1.106 GB, free: 9.02 MB / 0.8731 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.0001996/0.8757, allocations: 171.3 kB / 1.106 GB, free: 8.871 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.208e-05/0.8758, allocations: 27.72 kB / 1.106 GB, free: 8.855 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000584/0.8764, allocations: 360.2 kB / 1.107 GB, free: 8.695 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.509e-06/0.8764, allocations: 4.109 kB / 1.107 GB, free: 8.695 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.223e-06/0.8764, allocations: 0 / 1.107 GB, free: 8.695 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.8764, allocations: 1.125 kB / 1.107 GB, free: 8.695 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001215/0.8776, allocations: 0.8164 MB / 1.107 GB, free: 8.191 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.8776, allocations: 1 kB / 1.107 GB, free: 8.191 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004179/0.8781, allocations: 73.88 kB / 1.107 GB, free: 8.188 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.679e-06/0.8781, allocations: 2.094 kB / 1.107 GB, free: 8.188 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.641e-05/0.8781, allocations: 12.56 kB / 1.107 GB, free: 8.18 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.666e-06/0.8781, allocations: 2.031 kB / 1.107 GB, free: 8.18 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.8781, allocations: 0.6094 kB / 1.107 GB, free: 8.18 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008186/0.879, allocations: 0.6091 MB / 1.108 GB, free: 7.852 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001651/0.8791, allocations: 131.1 kB / 1.108 GB, free: 7.734 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.189e-05/0.8792, allocations: 7.453 kB / 1.108 GB, free: 7.73 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002462/0.8794, allocations: 20.2 kB / 1.108 GB, free: 7.723 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.995e-05/0.8795, allocations: 23.03 kB / 1.108 GB, free: 7.711 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.65e-05/0.8795, allocations: 5.812 kB / 1.108 GB, free: 7.711 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.000253/0.8798, allocations: 188.8 kB / 1.108 GB, free: 7.602 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8798, allocations: 0 / 1.108 GB, free: 7.602 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004599/0.8802, allocations: 89.5 kB / 1.108 GB, free: 7.59 MB / 0.8731 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.001102/0.8814, allocations: 1.157 MB / 1.11 GB, free: 6.727 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001031/0.8824, allocations: 0.5432 MB / 1.11 GB, free: 6.457 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.8824, allocations: 0 / 1.11 GB, free: 6.457 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002195/0.8826, allocations: 147.8 kB / 1.11 GB, free: 6.41 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004687/0.8831, allocations: 54.47 kB / 1.11 GB, free: 6.395 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005825/0.889, allocations: 3.685 MB / 1.114 GB, free: 4.055 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004729/0.8895, allocations: 0.793 MB / 1.115 GB, free: 3.348 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0002874/0.8898, allocations: 81.2 kB / 1.115 GB, free: 3.336 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001626/0.8899, allocations: 81.94 kB / 1.115 GB, free: 3.281 MB / 0.8731 GB Notification: Performance of SimCode: time 5.21e-07/0.8899, allocations: 0 / 1.115 GB, free: 3.281 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03228/0.9222, allocations: 7.051 MB / 1.122 GB, free: 2.527 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.59/10.51, allocations: 16.25 kB / 1.122 GB, free: 2.516 MB / 0.8731 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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