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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.425/2.425, allocations: 393.5 MB / 408.4 MB, free: 11.08 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001367/0.001368, allocations: 179.9 kB / 0.4902 GB, free: 2.309 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.583/1.583, allocations: 223.1 MB / 0.7992 GB, free: 14.76 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008342/0.0008343, allocations: 101.5 kB / 0.9396 GB, free: 1.945 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003573/0.0003573, allocations: 8.062 kB / 1.09 GB, free: 216.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3052/0.3056, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2136/0.5192, allocations: 180.7 MB / 1.406 GB, free: 4.879 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003388/0.5196, allocations: 99.94 kB / 1.406 GB, free: 4.781 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 0.6258/1.145, allocations: 21.24 MB / 1.426 GB, free: 183.7 MB / 0.9167 GB Notification: Performance of FrontEnd: time 3.377e-06/1.146, allocations: 0 / 1.426 GB, free: 183.7 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 3.402e-05/1.146, allocations: 10.19 kB / 1.427 GB, free: 183.7 MB / 0.9167 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.001209/1.147, allocations: 0.5697 MB / 1.427 GB, free: 183.3 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.886e-05/1.147, allocations: 9.031 kB / 1.427 GB, free: 183.3 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009538/1.148, allocations: 109 kB / 1.427 GB, free: 183.3 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005153/1.148, allocations: 286.3 kB / 1.427 GB, free: 183.1 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.14e-05/1.148, allocations: 20.44 kB / 1.427 GB, free: 183.1 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.877e-05/1.148, allocations: 30.14 kB / 1.427 GB, free: 183.1 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006284/1.149, allocations: 432.1 kB / 1.428 GB, free: 183 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.616e-05/1.149, allocations: 0.5625 kB / 1.428 GB, free: 183 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.611e-05/1.149, allocations: 8.469 kB / 1.428 GB, free: 183 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.234e-05/1.149, allocations: 30 kB / 1.428 GB, free: 183 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004568/1.15, allocations: 349.2 kB / 1.428 GB, free: 183 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002085/1.152, allocations: 2.208 MB / 1.43 GB, free: 181.4 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003896/1.152, allocations: 263.5 kB / 1.431 GB, free: 181.4 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 2.235e-05/1.152, allocations: 6.875 kB / 1.431 GB, free: 181.4 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.671e-05/1.152, allocations: 41.41 kB / 1.431 GB, free: 181.3 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=22): time 1.874e-06/1.152, allocations: 0 / 1.431 GB, free: 181.3 MB / 0.9167 GB Notification: Performance of matching and sorting (n=23): time 0.001766/1.154, allocations: 1.044 MB / 1.432 GB, free: 180.9 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.204e-05/1.154, allocations: 57.14 kB / 1.432 GB, free: 180.9 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002228/1.154, allocations: 220.6 kB / 1.432 GB, free: 180.8 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 2.371e-05/1.154, allocations: 38.55 kB / 1.432 GB, free: 180.7 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 8.647e-05/1.154, allocations: 178.2 kB / 1.432 GB, free: 180.6 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 6.243e-05/1.155, allocations: 91.34 kB / 1.432 GB, free: 180.5 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.026e-05/1.155, allocations: 3.5 kB / 1.432 GB, free: 180.5 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 6.558e-05/1.155, allocations: 335.9 kB / 1.433 GB, free: 180.2 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002248/1.155, allocations: 149.4 kB / 1.433 GB, free: 180.2 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002593/1.155, allocations: 229.5 kB / 1.433 GB, free: 180.1 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002892/1.155, allocations: 190.5 kB / 1.433 GB, free: 180.1 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/1.155, allocations: 0 / 1.433 GB, free: 180.1 MB / 0.9167 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001082/1.157, allocations: 0.5846 MB / 1.434 GB, free: 180.1 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/1.157, allocations: 5.703 kB / 1.434 GB, free: 180.1 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/1.157, allocations: 6.203 kB / 1.434 GB, free: 180.1 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007034/1.157, allocations: 182.5 kB / 1.434 GB, free: 180.1 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003059/1.158, allocations: 59.31 kB / 1.434 GB, free: 180.1 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002684/1.16, allocations: 2.348 MB / 1.436 GB, free: 178.8 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003249/1.161, allocations: 17.03 kB / 1.436 GB, free: 178.8 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.554e-05/1.161, allocations: 15.16 kB / 1.436 GB, free: 178.8 MB / 0.9167 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001943/1.161, allocations: 164.6 kB / 1.436 GB, free: 178.7 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.411e-05/1.161, allocations: 22.56 kB / 1.436 GB, free: 178.7 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005834/1.161, allocations: 357.1 kB / 1.437 GB, free: 178.6 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/1.162, allocations: 6.125 kB / 1.437 GB, free: 178.6 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.484e-06/1.162, allocations: 1.906 kB / 1.437 GB, free: 178.6 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/1.162, allocations: 1.172 kB / 1.437 GB, free: 178.6 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001104/1.163, allocations: 0.8113 MB / 1.438 GB, free: 178.3 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/1.163, allocations: 0 / 1.438 GB, free: 178.3 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004262/1.163, allocations: 74.08 kB / 1.438 GB, free: 178.3 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/1.163, allocations: 2.75 kB / 1.438 GB, free: 178.3 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.587e-05/1.163, allocations: 12.89 kB / 1.438 GB, free: 178.3 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/1.163, allocations: 3.281 kB / 1.438 GB, free: 178.3 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/1.163, allocations: 1.688 kB / 1.438 GB, free: 178.3 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007899/1.164, allocations: 0.629 MB / 1.438 GB, free: 178.1 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001574/1.164, allocations: 129.4 kB / 1.438 GB, free: 178 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.035e-05/1.164, allocations: 9.625 kB / 1.438 GB, free: 178 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002118/1.164, allocations: 12.66 kB / 1.438 GB, free: 178 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.297e-05/1.164, allocations: 12.56 kB / 1.438 GB, free: 178 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.842e-05/1.164, allocations: 8.672 kB / 1.439 GB, free: 178 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0001659/1.165, allocations: 175.8 kB / 1.439 GB, free: 177.9 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.4e-07/1.165, allocations: 0 / 1.439 GB, free: 177.9 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0004616/1.165, allocations: 100.6 kB / 1.439 GB, free: 177.9 MB / 0.9167 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001752/1.165, allocations: 135.8 kB / 1.439 GB, free: 177.8 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.000925/1.166, allocations: 0.518 MB / 1.439 GB, free: 177.7 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/1.166, allocations: 0.625 kB / 1.439 GB, free: 177.7 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0002238/1.166, allocations: 150 kB / 1.44 GB, free: 177.7 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003579/1.167, allocations: 49.81 kB / 1.44 GB, free: 177.7 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001524/1.168, allocations: 1.011 MB / 1.441 GB, free: 177.1 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000279/1.169, allocations: 0.8058 MB / 1.441 GB, free: 176.4 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0002221/1.169, allocations: 68.41 kB / 1.441 GB, free: 176.4 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.895e-05/1.169, allocations: 23.28 kB / 1.441 GB, free: 176.4 MB / 0.9167 GB Notification: Performance of SimCode: time 2.51e-07/1.169, allocations: 0.75 kB / 1.441 GB, free: 176.4 MB / 0.9167 GB Notification: Performance of Templates: time 0.008066/1.177, allocations: 3.654 MB / 1.445 GB, free: 176.2 MB / 0.9167 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","../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches