Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_OnePhase_Loads_Examples_TestImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_OnePhase_Loads_Examples_TestImpedance",fmuType="me",version="2.0",platforms={"static"}) [: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 8.1.4-maint.8.1.x/package.mo): time 1.364/1.364, allocations: 289.8 MB / 297.1 MB, free: 6.574 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009289/0.0009289, allocations: 173.3 kB / 366.3 MB, free: 1.926 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.047/1.047, allocations: 205.1 MB / 0.6256 GB, free: 7.418 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007816/0.0007816, allocations: 95.38 kB / 0.7396 GB, free: 39.83 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.1964/0.1972, allocations: 122.4 MB / 0.8591 GB, free: 13.44 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4446/0.6418, allocations: 116.3 MB / 0.9727 GB, free: 76.55 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1499/0.7918, allocations: 154 MB / 1.123 GB, free: 12.43 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00022/0.7921, allocations: 87.94 kB / 1.123 GB, free: 12.34 MB / 0.7292 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.06498/0.857, allocations: 29.83 MB / 1.152 GB, free: 14.31 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 3.116e-05/0.8571, allocations: 8 kB / 1.152 GB, free: 14.3 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001258/0.8584, allocations: 208.9 kB / 1.152 GB, free: 14.1 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006755/0.859, allocations: 488.3 kB / 1.153 GB, free: 13.58 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.963e-05/0.8591, allocations: 16 kB / 1.153 GB, free: 13.57 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.322e-05/0.8591, allocations: 27.91 kB / 1.153 GB, free: 13.54 MB / 0.7605 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000614/0.8598, allocations: 438.2 kB / 1.153 GB, free: 13.11 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008778/0.8606, allocations: 0.8537 MB / 1.154 GB, free: 12.08 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.339e-05/0.8607, allocations: 11.92 kB / 1.154 GB, free: 12.07 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.873e-05/0.8607, allocations: 8 kB / 1.154 GB, free: 12.06 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-05/0.8608, allocations: 56.69 kB / 1.154 GB, free: 12 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003644/0.8644, allocations: 5.563 MB / 1.16 GB, free: 6.059 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004767/0.8649, allocations: 415.2 kB / 1.16 GB, free: 5.645 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000264/0.8652, allocations: 225.3 kB / 1.16 GB, free: 5.422 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 2.77e-05/0.8652, allocations: 7.984 kB / 1.16 GB, free: 5.414 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.197e-05/0.8653, allocations: 38.48 kB / 1.16 GB, free: 5.367 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=32): time 1.783e-06/0.8653, allocations: 6.531 kB / 1.16 GB, free: 5.363 MB / 0.7605 GB Notification: Performance of matching and sorting (n=33): time 0.001398/0.8667, allocations: 0.8207 MB / 1.161 GB, free: 4.52 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.169e-05/0.8667, allocations: 59.41 kB / 1.161 GB, free: 4.449 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003363/0.8671, allocations: 345.3 kB / 1.162 GB, free: 4.105 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 2.611e-05/0.8671, allocations: 25.7 kB / 1.162 GB, free: 4.074 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001483/0.8673, allocations: 295.5 kB / 1.162 GB, free: 3.781 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 8.444e-05/0.8674, allocations: 118.3 kB / 1.162 GB, free: 3.664 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.97e-05/0.8674, allocations: 0 / 1.162 GB, free: 3.664 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001567/0.8675, allocations: 358.8 kB / 1.162 GB, free: 3.305 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002382/0.8678, allocations: 185.2 kB / 1.163 GB, free: 3.125 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003434/0.8681, allocations: 393.5 kB / 1.163 GB, free: 2.641 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003048/0.8684, allocations: 251.9 kB / 1.163 GB, free: 2.395 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.8685, allocations: 0 / 1.163 GB, free: 2.395 MB / 0.7605 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001055/0.8695, allocations: 0.7006 MB / 1.164 GB, free: 1.672 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/0.8695, allocations: 8 kB / 1.164 GB, free: 1.664 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.217e-06/0.8696, allocations: 7.938 kB / 1.164 GB, free: 1.656 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004688/0.87, allocations: 160.1 kB / 1.164 GB, free: 1.484 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004049/0.8704, allocations: 103.8 kB / 1.164 GB, free: 1.383 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002639/0.8731, allocations: 3.875 MB / 1.168 GB, free: 13.17 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003088/0.8734, allocations: 15.98 kB / 1.168 GB, free: 13.15 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.901e-05/0.8735, allocations: 29.56 kB / 1.168 GB, free: 13.12 MB / 0.7761 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.0001148/0.8736, allocations: 116.8 kB / 1.168 GB, free: 13 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.08e-05/0.8737, allocations: 55.34 kB / 1.168 GB, free: 12.95 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009686/0.8746, allocations: 0.5767 MB / 1.169 GB, free: 12.35 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/0.8747, allocations: 4 kB / 1.169 GB, free: 12.34 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.8747, allocations: 4 kB / 1.169 GB, free: 12.34 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.672e-06/0.8747, allocations: 3.906 kB / 1.169 GB, free: 12.34 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001599/0.8763, allocations: 1.172 MB / 1.17 GB, free: 11.09 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.8763, allocations: 0 / 1.17 GB, free: 11.09 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002501/0.8766, allocations: 51.95 kB / 1.17 GB, free: 11.04 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003939/0.877, allocations: 144.3 kB / 1.17 GB, free: 10.88 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.375e-05/0.877, allocations: 4 kB / 1.17 GB, free: 10.88 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002578/0.8796, allocations: 3.845 MB / 1.174 GB, free: 6.688 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.89e-06/0.8796, allocations: 4.031 kB / 1.174 GB, free: 6.684 MB / 0.7761 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009074/0.8805, allocations: 0.7762 MB / 1.174 GB, free: 5.812 MB / 0.7761 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009855/0.8815, allocations: 1.157 MB / 1.176 GB, free: 4.555 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001959/0.8817, allocations: 164.4 kB / 1.176 GB, free: 4.375 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.822e-05/0.8818, allocations: 4 kB / 1.176 GB, free: 4.371 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000244/0.882, allocations: 11.98 kB / 1.176 GB, free: 4.359 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.135e-05/0.8821, allocations: 19.97 kB / 1.176 GB, free: 4.34 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.283e-05/0.8821, allocations: 12 kB / 1.176 GB, free: 4.328 MB / 0.7761 GB Notification: Performance of sort global known variables: time 0.0002242/0.8824, allocations: 261.7 kB / 1.176 GB, free: 4.078 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.001178/0.8835, allocations: 127.8 kB / 1.176 GB, free: 3.953 MB / 0.7761 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.0001553/0.8837, allocations: 119.2 kB / 1.176 GB, free: 3.828 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.001186/0.8849, allocations: 0.9557 MB / 1.177 GB, free: 2.801 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.594e-06/0.8849, allocations: 0 / 1.177 GB, free: 2.801 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0007225/0.8856, allocations: 0.7006 MB / 1.178 GB, free: 2.027 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007682/0.8864, allocations: 161 kB / 1.178 GB, free: 1.875 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001258/0.8877, allocations: 0.7505 MB / 1.179 GB, free: 1.082 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005207/0.8882, allocations: 0.9565 MB / 1.18 GB, free: 100 kB / 0.7761 GB Notification: Performance of SimCode: time 2.71e-07/0.8882, allocations: 0 / 1.18 GB, free: 100 kB / 0.7761 GB (rm -f Buildings_8_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_AC_OnePhase_Loads_Examples_TestImpedance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Electrical_AC_OnePhase_Loads_Examples_TestImpedance.fmu > Buildings_8_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe 2>&1)