Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.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.VariableImpedance,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 1.82/1.82, allocations: 387.2 MB / 394.5 MB, free: 13.63 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.001066/0.001066, allocations: 181.2 kB / 487 MB, free: 5.352 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.155/1.155, allocations: 221.3 MB / 0.7819 GB, free: 1.355 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.0008713/0.0008713, allocations: 91.75 kB / 0.9213 GB, free: 2.605 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4343/0.4352, allocations: 148.5 MB / 1.066 GB, free: 168.1 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2005/0.6357, allocations: 142.3 MB / 1.205 GB, free: 26.11 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.56/1.196, allocations: 165 MB / 1.366 GB, free: 11.16 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002043/1.196, allocations: 97.33 kB / 1.366 GB, free: 11.11 MB / 0.8073 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.04437/1.24, allocations: 22.52 MB / 1.388 GB, free: 8.004 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.239e-05/1.24, allocations: 12 kB / 1.388 GB, free: 7.992 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008343/1.241, allocations: 131.1 kB / 1.389 GB, free: 7.867 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004932/1.242, allocations: 387.6 kB / 1.389 GB, free: 7.48 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.778e-05/1.242, allocations: 8 kB / 1.389 GB, free: 7.473 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.08e-05/1.242, allocations: 26.84 kB / 1.389 GB, free: 7.449 MB / 0.823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004175/1.242, allocations: 286.8 kB / 1.389 GB, free: 7.258 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005926/1.243, allocations: 0.5435 MB / 1.39 GB, free: 6.703 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.633e-05/1.243, allocations: 3.938 kB / 1.39 GB, free: 6.699 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.389e-05/1.243, allocations: 4 kB / 1.39 GB, free: 6.695 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.455e-05/1.243, allocations: 44.06 kB / 1.39 GB, free: 6.656 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002403/1.245, allocations: 3.292 MB / 1.393 GB, free: 3.375 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004641/1.246, allocations: 296.1 kB / 1.393 GB, free: 3.148 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001891/1.246, allocations: 159.8 kB / 1.394 GB, free: 3.039 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.037e-05/1.246, allocations: 0 / 1.394 GB, free: 3.039 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.798e-05/1.246, allocations: 45.66 kB / 1.394 GB, free: 2.988 MB / 0.823 GB Notification: Performance of pre-optimization done (n=26): time 1.283e-06/1.246, allocations: 0 / 1.394 GB, free: 2.988 MB / 0.823 GB Notification: Performance of matching and sorting (n=27): time 0.001013/1.247, allocations: 0.5748 MB / 1.394 GB, free: 2.512 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.191e-05/1.247, allocations: 55.64 kB / 1.394 GB, free: 2.445 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002163/1.247, allocations: 253.2 kB / 1.394 GB, free: 2.23 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 2.061e-05/1.247, allocations: 29.64 kB / 1.394 GB, free: 2.195 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 8.955e-05/1.248, allocations: 208.8 kB / 1.395 GB, free: 2.008 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 6.194e-05/1.248, allocations: 99.89 kB / 1.395 GB, free: 1.922 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.539e-05/1.248, allocations: 4 kB / 1.395 GB, free: 1.918 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.0001012/1.248, allocations: 339.8 kB / 1.395 GB, free: 1.59 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001631/1.248, allocations: 125.5 kB / 1.395 GB, free: 1.508 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002485/1.248, allocations: 253.3 kB / 1.395 GB, free: 1.258 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002037/1.248, allocations: 174.3 kB / 1.396 GB, free: 1.137 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/1.248, allocations: 0 / 1.396 GB, free: 1.137 MB / 0.823 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006852/1.249, allocations: 488 kB / 1.396 GB, free: 0.7422 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.138e-05/1.249, allocations: 7.984 kB / 1.396 GB, free: 0.7344 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/1.249, allocations: 4.531 kB / 1.396 GB, free: 0.7305 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002669/1.249, allocations: 88.89 kB / 1.396 GB, free: 0.6484 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003227/1.25, allocations: 75.89 kB / 1.396 GB, free: 0.5742 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.318e-06/1.25, allocations: 11.94 kB / 1.396 GB, free: 0.5625 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002487/1.25, allocations: 23.97 kB / 1.396 GB, free: 0.5391 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.855e-05/1.25, allocations: 23.22 kB / 1.396 GB, free: 0.5195 MB / 0.823 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 8.453e-05/1.25, allocations: 107.9 kB / 1.396 GB, free: 420 kB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.03e-05/1.25, allocations: 39.53 kB / 1.396 GB, free: 380 kB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006293/1.251, allocations: 426.4 kB / 1.397 GB, free: 44 kB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/1.251, allocations: 0 / 1.397 GB, free: 44 kB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.323e-06/1.251, allocations: 4 kB / 1.397 GB, free: 40 kB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/1.251, allocations: 7.891 kB / 1.397 GB, free: 32 kB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001074/1.252, allocations: 0.881 MB / 1.398 GB, free: 15.26 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/1.252, allocations: 96 / 1.398 GB, free: 15.26 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000242/1.252, allocations: 59.89 kB / 1.398 GB, free: 15.2 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002188/1.252, allocations: 79.27 kB / 1.398 GB, free: 15.12 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.682e-05/1.252, allocations: 0 / 1.398 GB, free: 15.12 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/1.252, allocations: 0 / 1.398 GB, free: 15.12 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/1.252, allocations: 4 kB / 1.398 GB, free: 15.12 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005921/1.253, allocations: 0.5542 MB / 1.398 GB, free: 14.6 MB / 0.8386 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007055/1.254, allocations: 0.92 MB / 1.399 GB, free: 13.72 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001439/1.254, allocations: 138.6 kB / 1.399 GB, free: 13.57 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.382e-05/1.254, allocations: 3.906 kB / 1.399 GB, free: 13.57 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002239/1.254, allocations: 15.98 kB / 1.399 GB, free: 13.55 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.17e-05/1.254, allocations: 23.47 kB / 1.399 GB, free: 13.54 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.578e-05/1.254, allocations: 4 kB / 1.399 GB, free: 13.53 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0001426/1.254, allocations: 195.7 kB / 1.4 GB, free: 13.38 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0009093/1.255, allocations: 84 kB / 1.4 GB, free: 13.3 MB / 0.8386 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.0001207/1.255, allocations: 107.2 kB / 1.4 GB, free: 13.18 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0005528/1.256, allocations: 0.5821 MB / 1.4 GB, free: 12.63 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/1.256, allocations: 0 / 1.4 GB, free: 12.63 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002998/1.256, allocations: 420.2 kB / 1.401 GB, free: 12.2 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005035/1.257, allocations: 97.62 kB / 1.401 GB, free: 12.12 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008259/1.258, allocations: 0.5225 MB / 1.401 GB, free: 11.62 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004607/1.258, allocations: 0.8702 MB / 1.402 GB, free: 10.74 MB / 0.8386 GB Notification: Performance of SimCode: time 3.01e-07/1.258, allocations: 0 / 1.402 GB, free: 10.74 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance_res.mat does not exist to compare? outputFormat=mat