Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.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.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_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.763/1.763, allocations: 387.2 MB / 394.5 MB, free: 13.59 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.001134/0.001134, allocations: 177.4 kB / 487 MB, free: 5.312 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.123/1.123, allocations: 221.3 MB / 0.7819 GB, free: 1.316 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.0008215/0.0008216, allocations: 90.86 kB / 0.9213 GB, free: 2.574 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 5.44e-06/5.46e-06, allocations: 0 / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1872/0.1872, allocations: 142.3 MB / 1.205 GB, free: 26.22 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.519/0.7062, allocations: 172 MB / 1.373 GB, free: 4.555 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000171/0.7064, allocations: 96.11 kB / 1.373 GB, free: 4.5 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.08179/0.7882, allocations: 39.7 MB / 1.412 GB, free: 2.984 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.948e-05/0.7883, allocations: 20 kB / 1.412 GB, free: 2.965 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.001235/0.7895, allocations: 0.8674 MB / 1.413 GB, free: 2.102 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.7896, allocations: 17.02 kB / 1.413 GB, free: 2.086 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001478/0.791, allocations: 218.8 kB / 1.413 GB, free: 1.871 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008657/0.7919, allocations: 0.5271 MB / 1.414 GB, free: 1.363 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.591e-05/0.792, allocations: 23.91 kB / 1.414 GB, free: 1.34 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.739e-05/0.7921, allocations: 39.94 kB / 1.414 GB, free: 1.305 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008125/0.7929, allocations: 0.5684 MB / 1.414 GB, free: 0.9297 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001235/0.7941, allocations: 1.001 MB / 1.415 GB, free: 15.99 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.101e-05/0.7942, allocations: 18.7 kB / 1.415 GB, free: 15.98 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.309e-05/0.7942, allocations: 4 kB / 1.415 GB, free: 15.97 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.637e-05/0.7943, allocations: 56.72 kB / 1.415 GB, free: 15.92 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004396/0.7987, allocations: 5.669 MB / 1.421 GB, free: 10.34 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004373/0.7992, allocations: 391.8 kB / 1.421 GB, free: 10.08 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003265/0.7995, allocations: 295.6 kB / 1.422 GB, free: 9.895 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 3.027e-05/0.7995, allocations: 4.688 kB / 1.422 GB, free: 9.891 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.329e-05/0.7996, allocations: 45.73 kB / 1.422 GB, free: 9.84 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=41): time 2.555e-06/0.7996, allocations: 0 / 1.422 GB, free: 9.84 MB / 0.8542 GB Notification: Performance of matching and sorting (n=42): time 0.001953/0.8015, allocations: 1.132 MB / 1.423 GB, free: 8.941 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.062e-05/0.8016, allocations: 59.41 kB / 1.423 GB, free: 8.871 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002906/0.8019, allocations: 324.4 kB / 1.423 GB, free: 8.609 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 2.836e-05/0.8019, allocations: 25.7 kB / 1.423 GB, free: 8.578 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001814/0.8021, allocations: 335.4 kB / 1.423 GB, free: 8.277 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 9.294e-05/0.8022, allocations: 140 kB / 1.424 GB, free: 8.156 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.198e-05/0.8022, allocations: 0 / 1.424 GB, free: 8.156 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001204/0.8023, allocations: 356.3 kB / 1.424 GB, free: 7.816 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002708/0.8026, allocations: 229.9 kB / 1.424 GB, free: 7.668 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003646/0.803, allocations: 416.5 kB / 1.424 GB, free: 7.273 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003341/0.8033, allocations: 289.8 kB / 1.425 GB, free: 7.078 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.8033, allocations: 3.906 kB / 1.425 GB, free: 7.074 MB / 0.8542 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001466/0.8048, allocations: 0.9047 MB / 1.426 GB, free: 6.352 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.216e-05/0.8048, allocations: 4 kB / 1.426 GB, free: 6.348 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/0.8049, allocations: 8 kB / 1.426 GB, free: 6.34 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000889/0.8057, allocations: 273.9 kB / 1.426 GB, free: 6.109 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003312/0.8061, allocations: 95.64 kB / 1.426 GB, free: 6.02 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005318/0.8114, allocations: 6.216 MB / 1.432 GB, free: 15.87 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003216/0.8118, allocations: 11.98 kB / 1.432 GB, free: 15.86 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.393e-05/0.8118, allocations: 23.88 kB / 1.432 GB, free: 15.84 MB / 0.8698 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.0001239/0.8119, allocations: 133.3 kB / 1.432 GB, free: 15.71 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.485e-05/0.812, allocations: 55.34 kB / 1.432 GB, free: 15.65 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001421/0.8135, allocations: 0.81 MB / 1.433 GB, free: 15.05 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.8135, allocations: 4 kB / 1.433 GB, free: 15.04 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.273e-06/0.8135, allocations: 7.984 kB / 1.433 GB, free: 15.04 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-06/0.8135, allocations: 0 / 1.433 GB, free: 15.04 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002314/0.8158, allocations: 1.52 MB / 1.435 GB, free: 13.79 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.8158, allocations: 0 / 1.435 GB, free: 13.79 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001898/0.816, allocations: 43.34 kB / 1.435 GB, free: 13.75 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008233/0.8169, allocations: 278.5 kB / 1.435 GB, free: 13.51 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.675e-05/0.8169, allocations: 0 / 1.435 GB, free: 13.51 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005221/0.8221, allocations: 6.207 MB / 1.441 GB, free: 7.375 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.479e-06/0.8221, allocations: 4 kB / 1.441 GB, free: 7.371 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001431/0.8236, allocations: 0.9866 MB / 1.442 GB, free: 6.492 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002079/0.8238, allocations: 174.6 kB / 1.442 GB, free: 6.32 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.897e-05/0.8239, allocations: 4 kB / 1.442 GB, free: 6.316 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000244/0.8241, allocations: 7.984 kB / 1.442 GB, free: 6.309 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.06e-05/0.8242, allocations: 27.69 kB / 1.442 GB, free: 6.285 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.464e-05/0.8242, allocations: 8 kB / 1.442 GB, free: 6.277 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0002074/0.8244, allocations: 251 kB / 1.442 GB, free: 6.086 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.000657/0.8251, allocations: 164 kB / 1.443 GB, free: 5.926 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.0001378/0.8252, allocations: 107.1 kB / 1.443 GB, free: 5.809 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.00147/0.8267, allocations: 1.066 MB / 1.444 GB, free: 4.895 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.8267, allocations: 0 / 1.444 GB, free: 4.895 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0009842/0.8277, allocations: 0.7623 MB / 1.444 GB, free: 4.191 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006914/0.8284, allocations: 154.9 kB / 1.445 GB, free: 4.07 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001478/0.8299, allocations: 0.9035 MB / 1.445 GB, free: 3.227 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005873/0.8305, allocations: 1.016 MB / 1.446 GB, free: 2.203 MB / 0.8698 GB Notification: Performance of SimCode: time 2.4e-07/0.8305, allocations: 0 / 1.446 GB, free: 2.203 MB / 0.8698 GB Notification: Performance of Templates: time 0.01335/0.8439, allocations: 8.713 MB / 1.455 GB, free: 9.578 MB / 0.8855 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_L.csv","../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches