Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.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.Lines.Examples.ACLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine") [: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 10.0.0-master/package.mo): time 1.707/1.707, allocations: 390.4 MB / 397.7 MB, free: 11.21 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.0008953/0.0008951, allocations: 186.7 kB / 490.8 MB, free: 1.895 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.057/1.057, allocations: 221.4 MB / 0.7863 GB, free: 13.62 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.0007918/0.0007918, allocations: 90.09 kB / 0.9264 GB, free: 14.15 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.68e-06/5.701e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1663/0.1663, allocations: 143 MB / 1.212 GB, free: 40.08 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4722/0.6385, allocations: 191.5 MB / 1.399 GB, free: 9.652 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001983/0.6388, allocations: 94.38 kB / 1.399 GB, free: 9.602 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.1637/0.8025, allocations: 82.77 MB / 1.48 GB, free: 3.973 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 7.881e-05/0.8026, allocations: 36 kB / 1.48 GB, free: 3.938 MB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.002252/0.8048, allocations: 1.556 MB / 1.481 GB, free: 2.43 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 2.902e-05/0.8049, allocations: 8.031 kB / 1.481 GB, free: 2.422 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009097/0.814, allocations: 1.461 MB / 1.482 GB, free: 0.9805 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001915/0.8159, allocations: 1.148 MB / 1.484 GB, free: 15.99 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.575e-05/0.8159, allocations: 36 kB / 1.484 GB, free: 15.95 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001857/0.8161, allocations: 68 kB / 1.484 GB, free: 15.89 MB / 0.9011 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001956/0.8181, allocations: 1.491 MB / 1.485 GB, free: 14.94 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002296/0.8204, allocations: 1.917 MB / 1.487 GB, free: 13.3 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.699e-05/0.8204, allocations: 15.03 kB / 1.487 GB, free: 13.29 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001325/0.8206, allocations: 4 kB / 1.487 GB, free: 13.29 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.648e-05/0.8206, allocations: 81.64 kB / 1.487 GB, free: 13.21 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01083/0.8315, allocations: 9.779 MB / 1.497 GB, free: 3.285 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001578/0.8331, allocations: 1.101 MB / 1.498 GB, free: 2.156 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006765/0.8338, allocations: 0.5995 MB / 1.498 GB, free: 1.555 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 3.616e-05/0.8338, allocations: 8.438 kB / 1.498 GB, free: 1.547 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.007e-05/0.8338, allocations: 39 kB / 1.498 GB, free: 1.5 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=53): time 1.423e-06/0.8338, allocations: 0 / 1.498 GB, free: 1.5 MB / 0.9011 GB Notification: Performance of matching and sorting (n=81): time 0.007504/0.8413, allocations: 3.956 MB / 1.502 GB, free: 13.5 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.842e-05/0.8414, allocations: 218.3 kB / 1.502 GB, free: 13.23 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008422/0.8423, allocations: 0.7499 MB / 1.503 GB, free: 12.47 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 8.937e-05/0.8424, allocations: 25.7 kB / 1.503 GB, free: 12.44 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002741/0.8427, allocations: 0.5455 MB / 1.504 GB, free: 11.89 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002059/0.8429, allocations: 275.9 kB / 1.504 GB, free: 11.61 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.848e-05/0.843, allocations: 4 kB / 1.504 GB, free: 11.61 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 9.149e-05/0.8431, allocations: 341.9 kB / 1.504 GB, free: 11.27 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008409/0.8439, allocations: 0.697 MB / 1.505 GB, free: 10.57 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009504/0.8449, allocations: 0.9282 MB / 1.506 GB, free: 9.547 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001174/0.846, allocations: 0.7969 MB / 1.507 GB, free: 8.75 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.8461, allocations: 0 / 1.507 GB, free: 8.75 MB / 0.9167 GB Notification: Performance of matching and sorting (n=114) (initialization): time 0.004435/0.8505, allocations: 2.482 MB / 1.509 GB, free: 6.23 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.228e-05/0.8505, allocations: 4 kB / 1.509 GB, free: 6.227 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/0.8505, allocations: 15.86 kB / 1.509 GB, free: 6.211 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002815/0.8534, allocations: 0.8504 MB / 1.51 GB, free: 5.336 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001751/0.8551, allocations: 331.5 kB / 1.51 GB, free: 5.012 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01308/0.8682, allocations: 13.84 MB / 1.524 GB, free: 6.25 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001835/0.8701, allocations: 199.7 kB / 1.524 GB, free: 6.055 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001233/0.8702, allocations: 47.97 kB / 1.524 GB, free: 6.008 MB / 0.9323 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 70 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(3,100.0%) 5,(3,100.0%) 5,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002326/0.8704, allocations: 137.4 kB / 1.524 GB, free: 5.867 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001985/0.8706, allocations: 126.5 kB / 1.524 GB, free: 5.742 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004876/0.8755, allocations: 2.529 MB / 1.527 GB, free: 3.172 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.016e-05/0.8755, allocations: 8 kB / 1.527 GB, free: 3.164 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.267e-06/0.8755, allocations: 15.88 kB / 1.527 GB, free: 3.148 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.8756, allocations: 3.984 kB / 1.527 GB, free: 3.145 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006617/0.8822, allocations: 4.084 MB / 1.531 GB, free: 14.96 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/0.8822, allocations: 7.984 kB / 1.531 GB, free: 14.95 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001535/0.8837, allocations: 287.9 kB / 1.531 GB, free: 14.67 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002544/0.8863, allocations: 0.7604 MB / 1.532 GB, free: 13.88 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.851e-05/0.8864, allocations: 19.97 kB / 1.532 GB, free: 13.86 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01224/0.8986, allocations: 13.38 MB / 1.545 GB, free: 15.56 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/0.8987, allocations: 7.906 kB / 1.545 GB, free: 15.55 MB / 0.9636 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004005/0.9027, allocations: 2.472 MB / 1.547 GB, free: 12.95 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005468/0.9032, allocations: 379.4 kB / 1.548 GB, free: 12.56 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002302/0.9035, allocations: 4 kB / 1.548 GB, free: 12.55 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001668/0.9051, allocations: 203.9 kB / 1.548 GB, free: 12.36 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001006/0.9052, allocations: 56.52 kB / 1.548 GB, free: 12.3 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001007/0.9053, allocations: 47.88 kB / 1.548 GB, free: 12.25 MB / 0.9636 GB Notification: Performance of sort global known variables: time 0.0006385/0.906, allocations: 0.5563 MB / 1.549 GB, free: 11.69 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.001108/0.9071, allocations: 407.9 kB / 1.549 GB, free: 11.29 MB / 0.9636 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 38 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(2,100.0%) 2,(2,100.0%) 4,(3,100.0%) 5,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(3,100.0%) 5,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002329/0.9073, allocations: 128.8 kB / 1.549 GB, free: 11.16 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.003832/0.9112, allocations: 2.705 MB / 1.552 GB, free: 8.379 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/0.9112, allocations: 4 kB / 1.552 GB, free: 8.375 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.002662/0.9139, allocations: 1.844 MB / 1.553 GB, free: 6.449 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001437/0.9153, allocations: 394.9 kB / 1.554 GB, free: 6.066 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005969/0.9213, allocations: 2.614 MB / 1.556 GB, free: 3.375 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001346/0.9227, allocations: 1.495 MB / 1.558 GB, free: 1.852 MB / 0.9636 GB Notification: Performance of SimCode: time 2.81e-07/0.9227, allocations: 0 / 1.558 GB, free: 1.852 MB / 0.9636 GB Notification: Performance of Templates: time 0.03969/0.9624, allocations: 30.27 MB / 1.587 GB, free: 3.906 MB / 0.9948 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine.csv","../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches