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: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Loads_Examples_TestImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 1.813/1.813, allocations: 387.2 MB / 394.5 MB, free: 13.32 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00102/0.00102, allocations: 185.2 kB / 487 MB, free: 0.7461 MB / 378.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.169/1.169, allocations: 221.4 MB / 0.7819 GB, free: 6.871 MB / 0.573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008375/0.0008376, allocations: 101.5 kB / 0.9213 GB, free: 43.73 MB / 0.6198 GB Notification: Performance of FrontEnd - loaded program: time 0.2122/0.2131, allocations: 148.5 MB / 1.066 GB, free: 7.52 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4957/0.7088, allocations: 142.3 MB / 1.205 GB, free: 72.76 MB / 0.7917 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1581/0.8669, allocations: 164.5 MB / 1.366 GB, free: 14.7 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002211/0.8672, allocations: 92.59 kB / 1.366 GB, free: 14.61 MB / 0.8698 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.06754/0.9347, allocations: 32.61 MB / 1.398 GB, free: 13.76 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 3.428e-05/0.9348, allocations: 8 kB / 1.398 GB, free: 13.75 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001176/0.936, allocations: 207.7 kB / 1.398 GB, free: 13.55 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006357/0.9366, allocations: 492.3 kB / 1.399 GB, free: 13.03 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.717e-05/0.9366, allocations: 16 kB / 1.399 GB, free: 13.02 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.969e-05/0.9367, allocations: 35.91 kB / 1.399 GB, free: 12.98 MB / 0.9011 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005854/0.9373, allocations: 430.2 kB / 1.399 GB, free: 12.56 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008417/0.9381, allocations: 0.8581 MB / 1.4 GB, free: 11.52 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.159e-05/0.9382, allocations: 7.938 kB / 1.4 GB, free: 11.51 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.351e-05/0.9382, allocations: 4 kB / 1.4 GB, free: 11.5 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.609e-05/0.9383, allocations: 60.73 kB / 1.4 GB, free: 11.45 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003402/0.9417, allocations: 5.565 MB / 1.405 GB, free: 5.504 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004489/0.9422, allocations: 419.4 kB / 1.406 GB, free: 5.086 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002513/0.9424, allocations: 229.3 kB / 1.406 GB, free: 4.859 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 2.261e-05/0.9424, allocations: 12.41 kB / 1.406 GB, free: 4.848 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.818e-05/0.9425, allocations: 34.56 kB / 1.406 GB, free: 4.805 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=32): time 1.503e-06/0.9425, allocations: 0 / 1.406 GB, free: 4.805 MB / 0.9011 GB Notification: Performance of matching and sorting (n=33): time 0.001276/0.9438, allocations: 0.8241 MB / 1.407 GB, free: 3.957 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.299e-05/0.9438, allocations: 59.39 kB / 1.407 GB, free: 3.887 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002869/0.9441, allocations: 349.3 kB / 1.407 GB, free: 3.539 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 2.242e-05/0.9441, allocations: 25.7 kB / 1.407 GB, free: 3.508 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001411/0.9443, allocations: 299.4 kB / 1.408 GB, free: 3.211 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 7.025e-05/0.9443, allocations: 114.3 kB / 1.408 GB, free: 3.098 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.778e-05/0.9444, allocations: 0.5625 kB / 1.408 GB, free: 3.098 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001001/0.9445, allocations: 358.8 kB / 1.408 GB, free: 2.738 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002218/0.9447, allocations: 181.2 kB / 1.408 GB, free: 2.562 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003113/0.945, allocations: 397.7 kB / 1.409 GB, free: 2.074 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002843/0.9453, allocations: 247.7 kB / 1.409 GB, free: 1.832 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.9453, allocations: 0 / 1.409 GB, free: 1.832 MB / 0.9011 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001006/0.9463, allocations: 0.7087 MB / 1.409 GB, free: 1.102 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.037e-05/0.9463, allocations: 4 kB / 1.409 GB, free: 1.098 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.9464, allocations: 8 kB / 1.409 GB, free: 1.09 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004228/0.9468, allocations: 152.8 kB / 1.41 GB, free: 0.9258 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003911/0.9472, allocations: 111.8 kB / 1.41 GB, free: 0.8164 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002412/0.9496, allocations: 3.859 MB / 1.414 GB, free: 12.62 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002896/0.9499, allocations: 15.98 kB / 1.414 GB, free: 12.6 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.461e-05/0.95, allocations: 24 kB / 1.414 GB, free: 12.58 MB / 0.9167 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 9.937e-05/0.9501, allocations: 134.8 kB / 1.414 GB, free: 12.44 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.352e-05/0.9501, allocations: 51.34 kB / 1.414 GB, free: 12.39 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008569/0.951, allocations: 0.5748 MB / 1.414 GB, free: 11.79 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.147e-06/0.951, allocations: 8 kB / 1.414 GB, free: 11.78 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.951, allocations: 0 / 1.414 GB, free: 11.78 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.951, allocations: 7.906 kB / 1.414 GB, free: 11.77 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001448/0.9525, allocations: 1.172 MB / 1.415 GB, free: 10.52 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.9525, allocations: 0 / 1.415 GB, free: 10.52 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002394/0.9527, allocations: 51.91 kB / 1.416 GB, free: 10.47 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003652/0.9531, allocations: 145.5 kB / 1.416 GB, free: 10.31 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.266e-05/0.9532, allocations: 5.375 kB / 1.416 GB, free: 10.31 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002321/0.9555, allocations: 3.859 MB / 1.419 GB, free: 6.109 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.9555, allocations: 4 kB / 1.419 GB, free: 6.105 MB / 0.9167 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008351/0.9563, allocations: 0.7663 MB / 1.42 GB, free: 5.242 MB / 0.9167 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009277/0.9573, allocations: 1.158 MB / 1.421 GB, free: 3.984 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001655/0.9574, allocations: 168.4 kB / 1.421 GB, free: 3.801 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.626e-05/0.9575, allocations: 4 kB / 1.421 GB, free: 3.797 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002317/0.9578, allocations: 7.984 kB / 1.421 GB, free: 3.789 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.054e-05/0.9578, allocations: 19.98 kB / 1.421 GB, free: 3.77 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.22e-05/0.9579, allocations: 15.98 kB / 1.422 GB, free: 3.754 MB / 0.9167 GB Notification: Performance of sort global known variables: time 0.0002047/0.9581, allocations: 263 kB / 1.422 GB, free: 3.5 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.001034/0.9591, allocations: 128.8 kB / 1.422 GB, free: 3.375 MB / 0.9167 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.000128/0.9592, allocations: 107.2 kB / 1.422 GB, free: 3.258 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.001047/0.9603, allocations: 0.9636 MB / 1.423 GB, free: 2.223 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.9603, allocations: 0 / 1.423 GB, free: 2.223 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.000738/0.961, allocations: 0.7021 MB / 1.424 GB, free: 1.449 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007113/0.9618, allocations: 155 kB / 1.424 GB, free: 1.309 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001195/0.963, allocations: 0.7583 MB / 1.424 GB, free: 0.5 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005666/0.9636, allocations: 0.9526 MB / 1.425 GB, free: 15.52 MB / 0.9323 GB Notification: Performance of SimCode: time 2.7e-07/0.9636, allocations: 0 / 1.425 GB, free: 15.52 MB / 0.9323 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Loads_Examples_TestImpedance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_OnePhase_Loads_Examples_TestImpedance.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance_res.mat does not exist to compare? outputFormat=mat