Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.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.VariableImpedance,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance",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.397/1.397, allocations: 289.8 MB / 297.1 MB, free: 6.703 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.001049/0.001049, allocations: 173.3 kB / 366.3 MB, free: 2.023 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.058/1.058, allocations: 205.1 MB / 0.6256 GB, free: 5.855 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.0007937/0.0007937, allocations: 97.73 kB / 0.7396 GB, free: 39.68 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.1965/0.1973, allocations: 122.4 MB / 0.8591 GB, free: 13.28 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4269/0.6242, allocations: 116.3 MB / 0.9727 GB, free: 68.34 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1505/0.7747, allocations: 154.4 MB / 1.123 GB, free: 10.13 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002072/0.775, allocations: 89.12 kB / 1.124 GB, free: 10.05 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.0438/0.8188, allocations: 20.66 MB / 1.144 GB, free: 5.156 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.153e-05/0.8188, allocations: 8 kB / 1.144 GB, free: 5.148 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008387/0.8197, allocations: 135.3 kB / 1.144 GB, free: 5.016 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005075/0.8202, allocations: 375.2 kB / 1.144 GB, free: 4.609 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.641e-05/0.8202, allocations: 12 kB / 1.144 GB, free: 4.598 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.564e-05/0.8203, allocations: 23.84 kB / 1.144 GB, free: 4.574 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004185/0.8207, allocations: 293.3 kB / 1.145 GB, free: 4.285 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005834/0.8213, allocations: 0.536 MB / 1.145 GB, free: 3.648 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.761e-05/0.8213, allocations: 8 kB / 1.145 GB, free: 3.641 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.239e-05/0.8213, allocations: 3.938 kB / 1.145 GB, free: 3.637 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-05/0.8214, allocations: 40.62 kB / 1.145 GB, free: 3.594 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002553/0.824, allocations: 3.298 MB / 1.148 GB, free: 64 kB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004842/0.8245, allocations: 290.8 kB / 1.149 GB, free: 15.77 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001947/0.8247, allocations: 160.8 kB / 1.149 GB, free: 15.61 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 2.348e-05/0.8247, allocations: 4.438 kB / 1.149 GB, free: 15.6 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.498e-05/0.8247, allocations: 42.41 kB / 1.149 GB, free: 15.55 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=26): time 1.653e-06/0.8247, allocations: 0 / 1.149 GB, free: 15.55 MB / 0.7605 GB Notification: Performance of matching and sorting (n=27): time 0.001027/0.8258, allocations: 0.5771 MB / 1.149 GB, free: 14.96 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.286e-05/0.8258, allocations: 55.64 kB / 1.149 GB, free: 14.89 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002361/0.826, allocations: 258 kB / 1.15 GB, free: 14.63 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 2.047e-05/0.8261, allocations: 25.7 kB / 1.15 GB, free: 14.6 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001018/0.8262, allocations: 211.5 kB / 1.15 GB, free: 14.39 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 7.624e-05/0.8263, allocations: 94.59 kB / 1.15 GB, free: 14.29 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.466e-05/0.8263, allocations: 0 / 1.15 GB, free: 14.29 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001137/0.8264, allocations: 346.8 kB / 1.15 GB, free: 13.95 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001863/0.8266, allocations: 124.7 kB / 1.15 GB, free: 13.82 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000244/0.8268, allocations: 252.5 kB / 1.151 GB, free: 13.52 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000225/0.8271, allocations: 166.6 kB / 1.151 GB, free: 13.36 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.8271, allocations: 8 kB / 1.151 GB, free: 13.35 MB / 0.7605 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007312/0.8278, allocations: 484 kB / 1.151 GB, free: 12.86 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 1.011e-05/0.8278, allocations: 8.031 kB / 1.151 GB, free: 12.86 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.084e-06/0.8279, allocations: 4 kB / 1.151 GB, free: 12.85 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002909/0.8281, allocations: 90.45 kB / 1.151 GB, free: 12.75 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003325/0.8285, allocations: 83.89 kB / 1.151 GB, free: 12.67 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.014e-05/0.8285, allocations: 22.75 kB / 1.151 GB, free: 12.65 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002482/0.8288, allocations: 23.98 kB / 1.152 GB, free: 12.63 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.781e-05/0.8288, allocations: 15.91 kB / 1.152 GB, free: 12.61 MB / 0.7605 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001009/0.8289, allocations: 113.2 kB / 1.152 GB, free: 12.5 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.951e-05/0.829, allocations: 35.53 kB / 1.152 GB, free: 12.46 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006801/0.8297, allocations: 424 kB / 1.152 GB, free: 12.03 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.8297, allocations: 4 kB / 1.152 GB, free: 12.02 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.491e-06/0.8297, allocations: 0 / 1.152 GB, free: 12.02 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.8297, allocations: 3.906 kB / 1.152 GB, free: 12.02 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001254/0.831, allocations: 0.8824 MB / 1.153 GB, free: 11.07 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.831, allocations: 4 kB / 1.153 GB, free: 11.07 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002514/0.8312, allocations: 47.91 kB / 1.153 GB, free: 11.02 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000255/0.8315, allocations: 78.61 kB / 1.153 GB, free: 10.94 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.808e-05/0.8315, allocations: 4 kB / 1.153 GB, free: 10.93 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.137e-06/0.8315, allocations: 4 kB / 1.153 GB, free: 10.93 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.8315, allocations: 0 / 1.153 GB, free: 10.93 MB / 0.7605 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000682/0.8322, allocations: 0.5486 MB / 1.154 GB, free: 10.33 MB / 0.7605 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007845/0.833, allocations: 0.9276 MB / 1.155 GB, free: 9.344 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001423/0.8332, allocations: 132.7 kB / 1.155 GB, free: 9.195 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.389e-05/0.8332, allocations: 7.891 kB / 1.155 GB, free: 9.188 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002258/0.8335, allocations: 19.98 kB / 1.155 GB, free: 9.168 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.274e-05/0.8335, allocations: 15.92 kB / 1.155 GB, free: 9.152 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.9e-05/0.8336, allocations: 8 kB / 1.155 GB, free: 9.145 MB / 0.7605 GB Notification: Performance of sort global known variables: time 0.0001662/0.8337, allocations: 200.6 kB / 1.155 GB, free: 8.953 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.0009603/0.8347, allocations: 79.94 kB / 1.155 GB, free: 8.875 MB / 0.7605 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001342/0.8348, allocations: 107.2 kB / 1.155 GB, free: 8.762 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.0006283/0.8355, allocations: 0.5799 MB / 1.156 GB, free: 8.117 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.8355, allocations: 0 / 1.156 GB, free: 8.117 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0003704/0.8359, allocations: 430.7 kB / 1.156 GB, free: 7.633 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005235/0.8364, allocations: 95.17 kB / 1.156 GB, free: 7.539 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008957/0.8373, allocations: 0.514 MB / 1.157 GB, free: 6.996 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000484/0.8378, allocations: 0.8722 MB / 1.157 GB, free: 6.094 MB / 0.7605 GB Notification: Performance of SimCode: time 2.81e-07/0.8378, allocations: 0 / 1.157 GB, free: 6.094 MB / 0.7605 GB (rm -f Buildings_8_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance.fmu > Buildings_8_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1)