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/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.773/1.773, allocations: 387.2 MB / 394.5 MB, free: 13.62 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.0009254/0.0009254, allocations: 181.2 kB / 487 MB, free: 5.383 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.1/1.1, allocations: 221.3 MB / 0.7819 GB, free: 1.391 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007961/0.0007961, allocations: 96.62 kB / 0.9213 GB, free: 2.629 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.472e-06/6.512e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1804/0.1804, allocations: 142.3 MB / 1.205 GB, free: 26.24 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5227/0.7031, allocations: 179.1 MB / 1.38 GB, free: 13.71 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002201/0.7034, allocations: 95.75 kB / 1.38 GB, free: 13.66 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.04502/0.7484, allocations: 20.69 MB / 1.4 GB, free: 12.3 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.514e-05/0.7484, allocations: 8 kB / 1.4 GB, free: 12.29 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.0007387/0.7492, allocations: 0.5448 MB / 1.401 GB, free: 11.72 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.31e-05/0.7492, allocations: 13.03 kB / 1.401 GB, free: 11.71 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008646/0.7501, allocations: 103.5 kB / 1.401 GB, free: 11.61 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004318/0.7505, allocations: 286.2 kB / 1.401 GB, free: 11.31 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.204e-05/0.7506, allocations: 8 kB / 1.401 GB, free: 11.3 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.182e-05/0.7506, allocations: 16 kB / 1.401 GB, free: 11.29 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003772/0.751, allocations: 266.3 kB / 1.402 GB, free: 11.11 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004855/0.7515, allocations: 400.8 kB / 1.402 GB, free: 10.77 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.649e-05/0.7515, allocations: 7.938 kB / 1.402 GB, free: 10.76 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.036e-05/0.7516, allocations: 0 / 1.402 GB, free: 10.76 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.096e-05/0.7516, allocations: 31.97 kB / 1.402 GB, free: 10.73 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002059/0.7537, allocations: 2.151 MB / 1.404 GB, free: 8.609 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002769/0.754, allocations: 243.8 kB / 1.404 GB, free: 8.434 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001715/0.7541, allocations: 160.9 kB / 1.404 GB, free: 8.328 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.941e-05/0.7542, allocations: 4.188 kB / 1.404 GB, free: 8.324 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.108e-05/0.7542, allocations: 34.73 kB / 1.405 GB, free: 8.281 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=22): time 1.413e-06/0.7542, allocations: 4 kB / 1.405 GB, free: 8.277 MB / 0.8386 GB Notification: Performance of matching and sorting (n=23): time 0.001083/0.7553, allocations: 0.7977 MB / 1.405 GB, free: 7.586 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.278e-05/0.7553, allocations: 55.41 kB / 1.405 GB, free: 7.52 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001705/0.7555, allocations: 197.9 kB / 1.406 GB, free: 7.355 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.073e-05/0.7555, allocations: 25.7 kB / 1.406 GB, free: 7.324 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.903e-05/0.7556, allocations: 179.6 kB / 1.406 GB, free: 7.152 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.883e-05/0.7557, allocations: 85.34 kB / 1.406 GB, free: 7.078 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.671e-05/0.7557, allocations: 4 kB / 1.406 GB, free: 7.074 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.735e-05/0.7558, allocations: 337.5 kB / 1.406 GB, free: 6.746 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001845/0.756, allocations: 142 kB / 1.406 GB, free: 6.656 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002158/0.7562, allocations: 228.1 kB / 1.407 GB, free: 6.457 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002986/0.7565, allocations: 191.8 kB / 1.407 GB, free: 6.328 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.7565, allocations: 0 / 1.407 GB, free: 6.328 MB / 0.8386 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0009687/0.7575, allocations: 0.5577 MB / 1.407 GB, free: 5.887 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.015e-05/0.7575, allocations: 4 kB / 1.407 GB, free: 5.883 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.7575, allocations: 0 / 1.407 GB, free: 5.883 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005959/0.7581, allocations: 184.1 kB / 1.407 GB, free: 5.73 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002707/0.7584, allocations: 59.89 kB / 1.407 GB, free: 5.672 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002155/0.7606, allocations: 2.14 MB / 1.41 GB, free: 3.719 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002698/0.7608, allocations: 11.98 kB / 1.41 GB, free: 3.707 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.933e-05/0.7609, allocations: 19.78 kB / 1.41 GB, free: 3.691 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 8.78e-05/0.761, allocations: 112.9 kB / 1.41 GB, free: 3.574 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.913e-05/0.761, allocations: 23.66 kB / 1.41 GB, free: 3.551 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004328/0.7615, allocations: 338.6 kB / 1.41 GB, free: 3.309 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.7615, allocations: 4 kB / 1.41 GB, free: 3.305 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-06/0.7615, allocations: 0 / 1.41 GB, free: 3.305 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.7615, allocations: 3.984 kB / 1.41 GB, free: 3.301 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008371/0.7623, allocations: 0.7625 MB / 1.411 GB, free: 2.637 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/0.7624, allocations: 0 / 1.411 GB, free: 2.637 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00039/0.7628, allocations: 75.3 kB / 1.411 GB, free: 2.566 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.147e-06/0.7628, allocations: 0 / 1.411 GB, free: 2.566 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.462e-05/0.7628, allocations: 7.938 kB / 1.411 GB, free: 2.559 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.017e-06/0.7628, allocations: 3.984 kB / 1.411 GB, free: 2.555 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.7628, allocations: 0 / 1.411 GB, free: 2.555 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005996/0.7634, allocations: 0.6327 MB / 1.412 GB, free: 2.035 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001132/0.7635, allocations: 133 kB / 1.412 GB, free: 1.898 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.392e-05/0.7636, allocations: 4 kB / 1.412 GB, free: 1.895 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002003/0.7638, allocations: 7.984 kB / 1.412 GB, free: 1.887 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.393e-05/0.7638, allocations: 19.83 kB / 1.412 GB, free: 1.867 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.886e-05/0.7639, allocations: 7.5 kB / 1.412 GB, free: 1.863 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0001119/0.764, allocations: 157.8 kB / 1.412 GB, free: 1.734 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003562/0.7643, allocations: 80 kB / 1.412 GB, free: 1.656 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.0001438/0.7645, allocations: 119.1 kB / 1.412 GB, free: 1.531 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0006669/0.7652, allocations: 497.9 kB / 1.412 GB, free: 1.148 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.7652, allocations: 0 / 1.412 GB, free: 1.148 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001616/0.7653, allocations: 141.5 kB / 1.413 GB, free: 1.051 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002977/0.7656, allocations: 42.52 kB / 1.413 GB, free: 1.02 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001211/0.7669, allocations: 0.707 MB / 1.413 GB, free: 348 kB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003896/0.7673, allocations: 0.8213 MB / 1.414 GB, free: 15.5 MB / 0.8542 GB Notification: Performance of SimCode: time 2.4e-07/0.7673, allocations: 0 / 1.414 GB, free: 15.5 MB / 0.8542 GB Notification: Performance of Templates: time 0.007149/0.7744, allocations: 3.995 MB / 1.418 GB, free: 11.54 MB / 0.8542 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.makefile (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 & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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","../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches