Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.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_L,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_L") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L,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_L") [: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.685/1.685, allocations: 390.4 MB / 397.7 MB, free: 11.25 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.000913/0.000913, allocations: 189.2 kB / 490.8 MB, free: 1.941 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.048/1.048, allocations: 221.4 MB / 0.7863 GB, free: 13.68 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.0007953/0.0007954, allocations: 98.48 kB / 0.9264 GB, free: 14.21 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.17e-06/5.19e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1657/0.1658, allocations: 143 MB / 1.212 GB, free: 40.14 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4626/0.6284, allocations: 172.8 MB / 1.38 GB, free: 16.74 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002097/0.6286, allocations: 90.11 kB / 1.38 GB, free: 16.74 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.07689/0.7055, allocations: 39.72 MB / 1.419 GB, free: 9.043 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.181e-05/0.7056, allocations: 20 kB / 1.419 GB, free: 9.023 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: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.001101/0.7067, allocations: 0.8643 MB / 1.42 GB, free: 8.164 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.656e-05/0.7067, allocations: 8.031 kB / 1.42 GB, free: 8.156 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001393/0.7081, allocations: 222.2 kB / 1.42 GB, free: 7.941 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008044/0.7089, allocations: 0.5321 MB / 1.421 GB, free: 7.434 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.107e-05/0.709, allocations: 20 kB / 1.421 GB, free: 7.414 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.529e-05/0.709, allocations: 47.08 kB / 1.421 GB, free: 7.371 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007456/0.7098, allocations: 0.5608 MB / 1.421 GB, free: 7.004 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001076/0.7109, allocations: 1.004 MB / 1.422 GB, free: 6.062 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.536e-05/0.7109, allocations: 11.84 kB / 1.422 GB, free: 6.051 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.587e-05/0.711, allocations: 8 kB / 1.422 GB, free: 6.043 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.857e-05/0.711, allocations: 60.64 kB / 1.422 GB, free: 5.988 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00404/0.7151, allocations: 5.669 MB / 1.428 GB, free: 452 kB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000427/0.7155, allocations: 397.8 kB / 1.428 GB, free: 180 kB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003083/0.7158, allocations: 301.2 kB / 1.429 GB, free: 15.98 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.576e-05/0.7159, allocations: 4.688 kB / 1.429 GB, free: 15.98 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.917e-05/0.7159, allocations: 41.75 kB / 1.429 GB, free: 15.93 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=41): time 1.383e-06/0.7159, allocations: 0 / 1.429 GB, free: 15.93 MB / 0.8542 GB Notification: Performance of matching and sorting (n=42): time 0.001821/0.7177, allocations: 1.118 MB / 1.43 GB, free: 15.06 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.209e-05/0.7178, allocations: 63.31 kB / 1.43 GB, free: 14.98 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002655/0.7181, allocations: 325 kB / 1.43 GB, free: 14.73 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 2.802e-05/0.7181, allocations: 25.7 kB / 1.43 GB, free: 14.7 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001418/0.7182, allocations: 333.7 kB / 1.431 GB, free: 14.39 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 9.3e-05/0.7183, allocations: 138.3 kB / 1.431 GB, free: 14.27 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.156e-05/0.7184, allocations: 0 / 1.431 GB, free: 14.27 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001119/0.7185, allocations: 359.7 kB / 1.431 GB, free: 13.93 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002618/0.7187, allocations: 228.7 kB / 1.431 GB, free: 13.79 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000361/0.7191, allocations: 411.9 kB / 1.432 GB, free: 13.39 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003331/0.7195, allocations: 293 kB / 1.432 GB, free: 13.2 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.7195, allocations: 0 / 1.432 GB, free: 13.2 MB / 0.8542 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001456/0.7209, allocations: 0.9109 MB / 1.433 GB, free: 12.47 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.073e-05/0.7209, allocations: 4 kB / 1.433 GB, free: 12.47 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/0.721, allocations: 4 kB / 1.433 GB, free: 12.46 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008763/0.7218, allocations: 279.9 kB / 1.433 GB, free: 12.23 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003208/0.7222, allocations: 94.33 kB / 1.433 GB, free: 12.14 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005083/0.7273, allocations: 6.215 MB / 1.439 GB, free: 6.008 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002932/0.7276, allocations: 15.98 kB / 1.439 GB, free: 5.992 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.732e-05/0.7276, allocations: 23.94 kB / 1.439 GB, free: 5.973 MB / 0.8542 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 (51): * Single equations (assignments): 47 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,88.9%) 5,(1,100.0%) 5,(1,100.0%) 3,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001103/0.7277, allocations: 125 kB / 1.439 GB, free: 5.844 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.485e-05/0.7278, allocations: 55.28 kB / 1.439 GB, free: 5.789 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001362/0.7292, allocations: 0.8223 MB / 1.44 GB, free: 5.176 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.7292, allocations: 4 kB / 1.44 GB, free: 5.172 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.7292, allocations: 4 kB / 1.44 GB, free: 5.168 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.7292, allocations: 0 / 1.44 GB, free: 5.168 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002112/0.7313, allocations: 1.522 MB / 1.442 GB, free: 3.93 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.7313, allocations: 0 / 1.442 GB, free: 3.93 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001947/0.7315, allocations: 43.91 kB / 1.442 GB, free: 3.887 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008241/0.7324, allocations: 279.7 kB / 1.442 GB, free: 3.652 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.479e-05/0.7324, allocations: 0 / 1.442 GB, free: 3.652 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00501/0.7374, allocations: 6.207 MB / 1.448 GB, free: 13.52 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.7374, allocations: 0 / 1.448 GB, free: 13.52 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001333/0.7388, allocations: 0.9887 MB / 1.449 GB, free: 12.64 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001834/0.739, allocations: 169.8 kB / 1.449 GB, free: 12.48 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.844e-05/0.739, allocations: 4 kB / 1.449 GB, free: 12.47 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002385/0.7393, allocations: 7.984 kB / 1.449 GB, free: 12.46 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.639e-05/0.7393, allocations: 26.44 kB / 1.449 GB, free: 12.44 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.466e-05/0.7394, allocations: 11 kB / 1.449 GB, free: 12.43 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0002071/0.7396, allocations: 247.8 kB / 1.45 GB, free: 12.24 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0005448/0.7401, allocations: 168 kB / 1.45 GB, free: 12.08 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 2,(1,100.0%) 3,(1,100.0%) 5,(3,88.9%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001375/0.7403, allocations: 110.9 kB / 1.45 GB, free: 11.96 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001399/0.7417, allocations: 1.07 MB / 1.451 GB, free: 11.04 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.7417, allocations: 0 / 1.451 GB, free: 11.04 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.001019/0.7427, allocations: 0.7569 MB / 1.452 GB, free: 10.34 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006876/0.7434, allocations: 161.3 kB / 1.452 GB, free: 10.22 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001418/0.7449, allocations: 0.8988 MB / 1.453 GB, free: 9.379 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005884/0.7455, allocations: 1.033 MB / 1.454 GB, free: 8.344 MB / 0.8698 GB Notification: Performance of SimCode: time 2.7e-07/0.7455, allocations: 0 / 1.454 GB, free: 8.344 MB / 0.8698 GB Notification: Performance of Templates: time 0.01271/0.7582, allocations: 8.689 MB / 1.462 GB, free: 15.77 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_L.csv","../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches