Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.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.TestImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Z1.i.1.|Z1.i.2.|Z2.i.1.|Z2.i.2.|Z3.i.1.|Z3.i.2.|Z4.i.1.|Z4.i.2.|Z5.i.1.|Z5.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance") translateModel(Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Z1.i.1.|Z1.i.2.|Z2.i.1.|Z2.i.2.|Z3.i.1.|Z3.i.2.|Z4.i.1.|Z4.i.2.|Z5.i.1.|Z5.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance") [: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.764/1.764, allocations: 387.2 MB / 394.5 MB, free: 13.66 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.001037/0.001037, allocations: 175.9 kB / 487 MB, free: 5.402 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.125/1.125, allocations: 221.3 MB / 0.7819 GB, free: 1.406 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.0008699/0.0008699, allocations: 94.44 kB / 0.9213 GB, free: 2.66 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.622e-06/6.722e-06, allocations: 0 / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1856/0.1856, allocations: 142.3 MB / 1.205 GB, free: 26.27 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5162/0.7019, allocations: 164.5 MB / 1.366 GB, free: 11.79 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002338/0.7021, allocations: 96.28 kB / 1.366 GB, free: 11.75 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.06626/0.7684, allocations: 31.83 MB / 1.397 GB, free: 1.039 MB / 0.823 GB Notification: Performance of Transformations before backend: time 3.409e-05/0.7685, allocations: 20 kB / 1.397 GB, free: 1.02 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.0009984/0.7695, allocations: 0.7704 MB / 1.398 GB, free: 244 kB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.168e-05/0.7695, allocations: 8.031 kB / 1.398 GB, free: 236 kB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001205/0.7707, allocations: 202.2 kB / 1.398 GB, free: 36 kB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006845/0.7714, allocations: 495.7 kB / 1.398 GB, free: 15.56 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.004e-05/0.7714, allocations: 12 kB / 1.399 GB, free: 15.55 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.905e-05/0.7715, allocations: 31.91 kB / 1.399 GB, free: 15.52 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000566/0.7721, allocations: 431.9 kB / 1.399 GB, free: 15.23 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008404/0.7729, allocations: 0.865 MB / 1.4 GB, free: 14.33 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.056e-05/0.773, allocations: 7.938 kB / 1.4 GB, free: 14.32 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.176e-05/0.773, allocations: 4 kB / 1.4 GB, free: 14.32 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.174e-05/0.7731, allocations: 52.31 kB / 1.4 GB, free: 14.27 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003427/0.7765, allocations: 5.564 MB / 1.405 GB, free: 8.699 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004305/0.7769, allocations: 418.3 kB / 1.406 GB, free: 8.391 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002345/0.7772, allocations: 229.7 kB / 1.406 GB, free: 8.238 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.787e-05/0.7772, allocations: 0.5312 kB / 1.406 GB, free: 8.238 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.107e-05/0.7772, allocations: 46.48 kB / 1.406 GB, free: 8.184 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=32): time 1.613e-06/0.7772, allocations: 0 / 1.406 GB, free: 8.184 MB / 0.8386 GB Notification: Performance of matching and sorting (n=33): time 0.001322/0.7786, allocations: 0.8374 MB / 1.407 GB, free: 7.484 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.295e-05/0.7786, allocations: 59.34 kB / 1.407 GB, free: 7.414 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002854/0.7789, allocations: 343.8 kB / 1.407 GB, free: 7.141 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.294e-05/0.7789, allocations: 29.7 kB / 1.407 GB, free: 7.105 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001241/0.7791, allocations: 291.1 kB / 1.407 GB, free: 6.848 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.933e-05/0.7791, allocations: 118.3 kB / 1.408 GB, free: 6.746 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.848e-05/0.7792, allocations: 4 kB / 1.408 GB, free: 6.742 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001029/0.7793, allocations: 356.2 kB / 1.408 GB, free: 6.406 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002151/0.7795, allocations: 184.8 kB / 1.408 GB, free: 6.285 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003105/0.7798, allocations: 390.4 kB / 1.408 GB, free: 5.879 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002723/0.7801, allocations: 250.6 kB / 1.409 GB, free: 5.703 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.7801, allocations: 4 kB / 1.409 GB, free: 5.699 MB / 0.8386 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009598/0.7811, allocations: 0.7031 MB / 1.409 GB, free: 5.117 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 9.838e-06/0.7811, allocations: 4.938 kB / 1.409 GB, free: 5.113 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.427e-06/0.7811, allocations: 8 kB / 1.409 GB, free: 5.105 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004291/0.7815, allocations: 155.8 kB / 1.41 GB, free: 4.957 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003873/0.7819, allocations: 111.2 kB / 1.41 GB, free: 4.852 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002446/0.7844, allocations: 3.851 MB / 1.413 GB, free: 0.7969 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002856/0.7847, allocations: 24.05 kB / 1.413 GB, free: 0.7734 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.525e-05/0.7847, allocations: 26.56 kB / 1.413 GB, free: 0.7539 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001053/0.7848, allocations: 124.7 kB / 1.414 GB, free: 0.625 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.463e-05/0.7849, allocations: 55.34 kB / 1.414 GB, free: 0.5703 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008518/0.7858, allocations: 0.5788 MB / 1.414 GB, free: 112 kB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.7858, allocations: 4 kB / 1.414 GB, free: 108 kB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.7858, allocations: 0 / 1.414 GB, free: 108 kB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.7858, allocations: 3.906 kB / 1.414 GB, free: 104 kB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001471/0.7873, allocations: 1.175 MB / 1.415 GB, free: 15.08 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.7873, allocations: 4 kB / 1.415 GB, free: 15.08 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000235/0.7875, allocations: 51.41 kB / 1.415 GB, free: 15.03 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000364/0.7879, allocations: 142 kB / 1.416 GB, free: 14.9 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.999e-05/0.7879, allocations: 3.938 kB / 1.416 GB, free: 14.89 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002432/0.7904, allocations: 3.86 MB / 1.419 GB, free: 10.83 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.7904, allocations: 0 / 1.419 GB, free: 10.83 MB / 0.8542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008554/0.7912, allocations: 0.7746 MB / 1.42 GB, free: 10.08 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000167/0.7914, allocations: 161.2 kB / 1.42 GB, free: 9.918 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.3e-05/0.7915, allocations: 0 / 1.42 GB, free: 9.918 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002294/0.7917, allocations: 19.89 kB / 1.42 GB, free: 9.898 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.424e-05/0.7918, allocations: 23.28 kB / 1.42 GB, free: 9.879 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.004e-05/0.7918, allocations: 11.88 kB / 1.42 GB, free: 9.871 MB / 0.8542 GB Notification: Performance of sort global known variables: time 0.000208/0.792, allocations: 259.8 kB / 1.421 GB, free: 9.672 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0005243/0.7926, allocations: 124 kB / 1.421 GB, free: 9.551 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * 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): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001331/0.7927, allocations: 115.9 kB / 1.421 GB, free: 9.426 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.001043/0.7937, allocations: 0.9594 MB / 1.422 GB, free: 8.531 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.7938, allocations: 0 / 1.422 GB, free: 8.531 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0007343/0.7945, allocations: 0.6972 MB / 1.422 GB, free: 7.82 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006944/0.7952, allocations: 163.7 kB / 1.423 GB, free: 7.695 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001111/0.7963, allocations: 0.7516 MB / 1.423 GB, free: 6.977 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004692/0.7968, allocations: 0.9515 MB / 1.424 GB, free: 6.008 MB / 0.8542 GB Notification: Performance of SimCode: time 2.5e-07/0.7968, allocations: 0 / 1.424 GB, free: 6.008 MB / 0.8542 GB Notification: Performance of Templates: time 0.0109/0.8077, allocations: 7.018 MB / 1.431 GB, free: 15.07 MB / 0.8698 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Loads_Examples_TestImpedance.csv","../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches