Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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: translateModel(Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dynRC.i.1.|dynRC.i.2.|dynRL.i.1.|dynRL.i.2.|dynRC.v.1.|dynRC.v.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads") translateModel(Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dynRC.i.1.|dynRC.i.2.|dynRL.i.1.|dynRL.i.2.|dynRC.v.1.|dynRC.v.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005646/0.005646, allocations: 101.2 kB / 15.73 MB, free: 6.047 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.001365/0.001365, allocations: 195.9 kB / 16.67 MB, free: 5.977 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.379/1.379, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.689/2.689, allocations: 461.9 MB / 0.7348 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001429/0.001429, allocations: 60.12 kB / 1.054 GB, free: 7.152 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3467/0.3482, allocations: 157.4 MB / 1.208 GB, free: 9.648 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads): time 0.005648/0.3539, allocations: 3.274 MB / 1.211 GB, free: 6.355 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.00358/0.3575, allocations: 2.014 MB / 1.213 GB, free: 4.332 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002663/0.3578, allocations: 4 kB / 1.213 GB, free: 4.328 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001058/0.3589, allocations: 293 kB / 1.213 GB, free: 4.043 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0007368/0.3596, allocations: 234.9 kB / 1.213 GB, free: 3.812 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007872/0.3604, allocations: 287.2 kB / 1.214 GB, free: 3.531 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0005872/0.361, allocations: 410.7 kB / 1.214 GB, free: 3.129 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003922/0.3614, allocations: 212.2 kB / 1.214 GB, free: 2.918 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002817/0.3617, allocations: 159.5 kB / 1.214 GB, free: 2.762 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004222/0.3622, allocations: 195.3 kB / 1.215 GB, free: 2.57 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 5.329e-05/0.3622, allocations: 24 kB / 1.215 GB, free: 2.547 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004777/0.3627, allocations: 271.4 kB / 1.215 GB, free: 2.281 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001397/0.3629, allocations: 119.7 kB / 1.215 GB, free: 2.164 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001702/0.363, allocations: 147.2 kB / 1.215 GB, free: 2.02 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0006897/0.3637, allocations: 494.5 kB / 1.216 GB, free: 1.535 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.3638, allocations: 3.938 kB / 1.216 GB, free: 1.531 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.643e-06/0.3638, allocations: 4 kB / 1.216 GB, free: 1.527 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.103e-05/0.3638, allocations: 0 / 1.216 GB, free: 1.527 MB / 0.9669 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.001173/0.365, allocations: 0.5927 MB / 1.216 GB, free: 0.8828 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/0.365, allocations: 8.625 kB / 1.216 GB, free: 0.875 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00107/0.3661, allocations: 120.4 kB / 1.216 GB, free: 0.7578 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004593/0.3665, allocations: 288.4 kB / 1.217 GB, free: 444 kB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.98e-05/0.3666, allocations: 16.94 kB / 1.217 GB, free: 428 kB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000129/0.3667, allocations: 36.73 kB / 1.217 GB, free: 392 kB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007443/0.3675, allocations: 457 kB / 1.217 GB, free: 15.9 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.3675, allocations: 7.938 kB / 1.217 GB, free: 15.89 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.659e-05/0.3675, allocations: 8 kB / 1.217 GB, free: 15.89 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000182/0.3677, allocations: 36.53 kB / 1.217 GB, free: 15.85 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006774/0.3684, allocations: 365.9 kB / 1.217 GB, free: 15.5 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002923/0.3714, allocations: 2.218 MB / 1.22 GB, free: 13.08 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004807/0.3719, allocations: 262.4 kB / 1.22 GB, free: 12.81 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000233/0.3721, allocations: 164.8 kB / 1.22 GB, free: 12.65 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.702e-05/0.3721, allocations: 3.984 kB / 1.22 GB, free: 12.64 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.784e-05/0.3722, allocations: 34.56 kB / 1.22 GB, free: 12.6 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=22): time 1.683e-06/0.3722, allocations: 0 / 1.22 GB, free: 12.6 MB / 0.9825 GB Notification: Performance of matching and sorting (n=23): time 0.002155/0.3743, allocations: 1.06 MB / 1.221 GB, free: 11.47 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.83e-05/0.3744, allocations: 55.27 kB / 1.221 GB, free: 11.41 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003937/0.3748, allocations: 264.8 kB / 1.221 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.41e-05/0.3749, allocations: 29.7 kB / 1.221 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001504/0.375, allocations: 187.9 kB / 1.222 GB, free: 10.92 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 8.838e-05/0.3751, allocations: 90.73 kB / 1.222 GB, free: 10.83 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001669/0.3753, allocations: 81.58 kB / 1.222 GB, free: 10.74 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001826/0.3755, allocations: 326.8 kB / 1.222 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000308/0.3758, allocations: 167.8 kB / 1.222 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004411/0.3762, allocations: 237.6 kB / 1.222 GB, free: 9.98 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000623/0.3769, allocations: 410.8 kB / 1.223 GB, free: 9.547 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.093e-06/0.3769, allocations: 0 / 1.223 GB, free: 9.547 MB / 0.9825 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001331/0.3782, allocations: 0.601 MB / 1.223 GB, free: 8.938 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.264e-05/0.3783, allocations: 4.312 kB / 1.223 GB, free: 8.934 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.224e-05/0.3783, allocations: 8 kB / 1.223 GB, free: 8.926 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007417/0.379, allocations: 196.5 kB / 1.224 GB, free: 8.73 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003435/0.3794, allocations: 67.88 kB / 1.224 GB, free: 8.664 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003244/0.3826, allocations: 2.481 MB / 1.226 GB, free: 6.043 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003788/0.383, allocations: 24.08 kB / 1.226 GB, free: 6.02 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.008e-05/0.3831, allocations: 20.09 kB / 1.226 GB, free: 6 MB / 0.9825 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.0002218/0.3833, allocations: 165.7 kB / 1.226 GB, free: 5.828 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.584e-05/0.3834, allocations: 27.75 kB / 1.226 GB, free: 5.801 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005269/0.3839, allocations: 348.1 kB / 1.227 GB, free: 5.457 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.3839, allocations: 4 kB / 1.227 GB, free: 5.453 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.643e-06/0.3839, allocations: 4 kB / 1.227 GB, free: 5.449 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.3839, allocations: 0 / 1.227 GB, free: 5.449 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001186/0.3851, allocations: 0.816 MB / 1.228 GB, free: 4.57 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.3851, allocations: 4 kB / 1.228 GB, free: 4.566 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003955/0.3855, allocations: 75.88 kB / 1.228 GB, free: 4.492 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.911e-06/0.3856, allocations: 4 kB / 1.228 GB, free: 4.488 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.735e-05/0.3856, allocations: 4 kB / 1.228 GB, free: 4.484 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.591e-06/0.3856, allocations: 8 kB / 1.228 GB, free: 4.477 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.3856, allocations: 4.062 kB / 1.228 GB, free: 4.473 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008286/0.3864, allocations: 0.6082 MB / 1.228 GB, free: 3.844 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001829/0.3866, allocations: 128.8 kB / 1.228 GB, free: 3.699 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.199e-05/0.3867, allocations: 8 kB / 1.228 GB, free: 3.691 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002453/0.3869, allocations: 15.98 kB / 1.228 GB, free: 3.676 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.44e-05/0.387, allocations: 23.91 kB / 1.228 GB, free: 3.652 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.536e-05/0.387, allocations: 8 kB / 1.228 GB, free: 3.645 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0002359/0.3873, allocations: 188.5 kB / 1.229 GB, free: 3.461 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3873, allocations: 0 / 1.229 GB, free: 3.461 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0004136/0.3877, allocations: 84 kB / 1.229 GB, free: 3.379 MB / 0.9825 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.0001754/0.3879, allocations: 111.1 kB / 1.229 GB, free: 3.258 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0009901/0.3889, allocations: 0.5334 MB / 1.229 GB, free: 2.711 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.3889, allocations: 0 / 1.229 GB, free: 2.711 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002056/0.3891, allocations: 154.7 kB / 1.229 GB, free: 2.562 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004633/0.3896, allocations: 60.94 kB / 1.229 GB, free: 2.508 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001461/0.391, allocations: 0.8329 MB / 1.23 GB, free: 1.641 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003809/0.3914, allocations: 0.7989 MB / 1.231 GB, free: 0.8125 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0002264/0.3917, allocations: 74.92 kB / 1.231 GB, free: 0.7422 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.487e-05/0.3918, allocations: 23.44 kB / 1.231 GB, free: 0.7188 MB / 0.9825 GB Notification: Performance of SimCode: time 2.31e-07/0.3918, allocations: 0 / 1.231 GB, free: 0.7188 MB / 0.9825 GB Notification: Performance of Templates: time 0.008287/0.4001, allocations: 4.251 MB / 1.235 GB, free: 12.49 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches