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.36/2.36, allocations: 390.5 MB / 398 MB, free: 10.98 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.001055/0.001055, allocations: 175.8 kB / 491.2 MB, free: 1.602 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.531/1.531, allocations: 221.5 MB / 0.7868 GB, free: 13.29 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.0009256/0.0009254, allocations: 97.92 kB / 0.9269 GB, free: 13.78 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.864e-05/1.866e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3289/0.3289, allocations: 143 MB / 1.212 GB, free: 39.52 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.128/1.457, allocations: 179.9 MB / 1.388 GB, free: 16.41 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002741/1.458, allocations: 93.22 kB / 1.388 GB, free: 16.39 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.0463/1.504, allocations: 21.07 MB / 1.409 GB, free: 18.46 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.344e-06/1.504, allocations: 0 / 1.409 GB, free: 18.46 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.123e-05/1.504, allocations: 7.984 kB / 1.409 GB, free: 18.46 MB / 0.8386 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.0009038/1.505, allocations: 0.5426 MB / 1.409 GB, free: 17.89 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 6.132e-05/1.505, allocations: 8.031 kB / 1.409 GB, free: 17.88 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008803/1.506, allocations: 107.6 kB / 1.409 GB, free: 17.78 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000429/1.506, allocations: 293.3 kB / 1.41 GB, free: 17.47 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.497e-05/1.506, allocations: 8 kB / 1.41 GB, free: 17.46 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.039e-05/1.506, allocations: 12 kB / 1.41 GB, free: 17.45 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003726/1.507, allocations: 252.2 kB / 1.41 GB, free: 17.29 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004735/1.507, allocations: 394.4 kB / 1.41 GB, free: 16.96 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.919e-05/1.507, allocations: 3.938 kB / 1.41 GB, free: 16.95 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.209e-05/1.507, allocations: 3.938 kB / 1.41 GB, free: 16.95 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-05/1.507, allocations: 24.55 kB / 1.41 GB, free: 16.93 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002151/1.51, allocations: 2.142 MB / 1.412 GB, free: 14.81 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003871/1.51, allocations: 253 kB / 1.413 GB, free: 14.64 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001946/1.51, allocations: 154.3 kB / 1.413 GB, free: 14.54 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.233e-05/1.51, allocations: 8.125 kB / 1.413 GB, free: 14.54 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.116e-05/1.51, allocations: 30.75 kB / 1.413 GB, free: 14.5 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=22): time 1.633e-06/1.51, allocations: 0 / 1.413 GB, free: 14.5 MB / 0.8386 GB Notification: Performance of matching and sorting (n=23): time 0.001241/1.512, allocations: 0.7766 MB / 1.414 GB, free: 13.83 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.662e-05/1.512, allocations: 55.41 kB / 1.414 GB, free: 13.76 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001943/1.512, allocations: 198.4 kB / 1.414 GB, free: 13.59 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.537e-05/1.512, allocations: 25.7 kB / 1.414 GB, free: 13.56 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001117/1.512, allocations: 195.4 kB / 1.414 GB, free: 13.39 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.293e-05/1.512, allocations: 80.31 kB / 1.414 GB, free: 13.32 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.737e-05/1.512, allocations: 3.938 kB / 1.414 GB, free: 13.32 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001393/1.512, allocations: 336.4 kB / 1.414 GB, free: 12.99 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001833/1.512, allocations: 142.6 kB / 1.415 GB, free: 12.9 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000234/1.513, allocations: 214.6 kB / 1.415 GB, free: 12.71 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003248/1.513, allocations: 188.9 kB / 1.415 GB, free: 12.59 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/1.513, allocations: 0 / 1.415 GB, free: 12.59 MB / 0.8386 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0009746/1.514, allocations: 0.5333 MB / 1.415 GB, free: 12.17 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.018e-05/1.514, allocations: 8 kB / 1.415 GB, free: 12.16 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/1.514, allocations: 0 / 1.415 GB, free: 12.16 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005963/1.515, allocations: 179.2 kB / 1.416 GB, free: 12.01 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002733/1.515, allocations: 63.83 kB / 1.416 GB, free: 11.95 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002561/1.517, allocations: 2.187 MB / 1.418 GB, free: 9.992 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002638/1.518, allocations: 12.02 kB / 1.418 GB, free: 9.98 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.509e-05/1.518, allocations: 19.97 kB / 1.418 GB, free: 9.965 MB / 0.8386 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 () * 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.0001165/1.518, allocations: 112.8 kB / 1.418 GB, free: 9.848 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.156e-05/1.518, allocations: 23.72 kB / 1.418 GB, free: 9.824 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005169/1.518, allocations: 328.2 kB / 1.418 GB, free: 9.59 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/1.518, allocations: 8.062 kB / 1.418 GB, free: 9.582 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/1.518, allocations: 3.953 kB / 1.418 GB, free: 9.578 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/1.518, allocations: 0 / 1.418 GB, free: 9.578 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009611/1.519, allocations: 0.7374 MB / 1.419 GB, free: 8.938 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/1.519, allocations: 3.984 kB / 1.419 GB, free: 8.934 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003691/1.52, allocations: 67.33 kB / 1.419 GB, free: 8.871 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.26e-06/1.52, allocations: 4 kB / 1.419 GB, free: 8.867 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.259e-05/1.52, allocations: 12 kB / 1.419 GB, free: 8.855 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.087e-06/1.52, allocations: 7.938 kB / 1.419 GB, free: 8.848 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/1.52, allocations: 0 / 1.419 GB, free: 8.848 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006604/1.521, allocations: 0.6018 MB / 1.42 GB, free: 8.359 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001183/1.521, allocations: 127.3 kB / 1.42 GB, free: 8.227 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.028e-05/1.521, allocations: 4 kB / 1.42 GB, free: 8.223 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001826/1.521, allocations: 7.984 kB / 1.42 GB, free: 8.215 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.467e-05/1.521, allocations: 14.3 kB / 1.42 GB, free: 8.203 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.095e-05/1.521, allocations: 11.05 kB / 1.42 GB, free: 8.195 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001386/1.521, allocations: 157.5 kB / 1.42 GB, free: 8.066 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.521, allocations: 0 / 1.42 GB, free: 8.066 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004478/1.522, allocations: 90.88 kB / 1.42 GB, free: 7.98 MB / 0.8386 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 () * 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.0002381/1.522, allocations: 119.3 kB / 1.42 GB, free: 7.855 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0008409/1.523, allocations: 493.4 kB / 1.421 GB, free: 7.48 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/1.523, allocations: 0 / 1.421 GB, free: 7.48 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001842/1.523, allocations: 145.2 kB / 1.421 GB, free: 7.379 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003543/1.523, allocations: 50.97 kB / 1.421 GB, free: 7.34 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001266/1.525, allocations: 0.6956 MB / 1.422 GB, free: 6.672 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003827/1.525, allocations: 0.7986 MB / 1.422 GB, free: 5.855 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0002334/1.525, allocations: 66.02 kB / 1.422 GB, free: 5.793 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.483e-05/1.525, allocations: 26.44 kB / 1.422 GB, free: 5.77 MB / 0.8386 GB Notification: Performance of SimCode: time 2.044e-06/1.525, allocations: 4 kB / 1.422 GB, free: 5.766 MB / 0.8386 GB Notification: Performance of Templates: time 0.007316/1.533, allocations: 3.459 MB / 1.426 GB, free: 2.34 MB / 0.8386 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