Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 1.762/1.762, allocations: 390.4 MB / 397.7 MB, free: 10.7 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.0009131/0.0009131, allocations: 187.7 kB / 490.8 MB, free: 11.23 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.098/1.098, allocations: 221.4 MB / 0.7863 GB, free: 13.6 MB / 0.5886 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008089/0.0008089, allocations: 97.83 kB / 0.9264 GB, free: 4.559 MB / 0.6667 GB Notification: Performance of FrontEnd - loaded program: time 0.224/0.2248, allocations: 149.1 MB / 1.072 GB, free: 15.5 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5076/0.7325, allocations: 143 MB / 1.212 GB, free: 156 MB / 0.8855 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1428/0.8753, allocations: 165.8 MB / 1.374 GB, free: 25.84 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001921/0.8755, allocations: 95.92 kB / 1.374 GB, free: 25.75 MB / 0.8855 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.0427/0.9182, allocations: 22.53 MB / 1.396 GB, free: 3.145 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 3.014e-05/0.9183, allocations: 8 kB / 1.396 GB, free: 3.137 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008195/0.9191, allocations: 133.9 kB / 1.396 GB, free: 3.008 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004287/0.9195, allocations: 375.2 kB / 1.396 GB, free: 2.602 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.454e-05/0.9196, allocations: 12 kB / 1.396 GB, free: 2.59 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.488e-05/0.9196, allocations: 18.34 kB / 1.396 GB, free: 2.574 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003815/0.92, allocations: 293.3 kB / 1.396 GB, free: 2.285 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00049/0.9205, allocations: 0.5477 MB / 1.397 GB, free: 1.641 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.49e-05/0.9205, allocations: 0 / 1.397 GB, free: 1.641 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.074e-05/0.9206, allocations: 4 kB / 1.397 GB, free: 1.637 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.465e-05/0.9206, allocations: 40.62 kB / 1.397 GB, free: 1.598 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002178/0.9228, allocations: 3.294 MB / 1.4 GB, free: 14.06 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004559/0.9233, allocations: 298.7 kB / 1.401 GB, free: 13.76 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001941/0.9235, allocations: 160.8 kB / 1.401 GB, free: 13.6 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 2.292e-05/0.9235, allocations: 7.984 kB / 1.401 GB, free: 13.59 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.582e-05/0.9235, allocations: 30.56 kB / 1.401 GB, free: 13.55 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=26): time 1.302e-06/0.9235, allocations: 0 / 1.401 GB, free: 13.55 MB / 0.9011 GB Notification: Performance of matching and sorting (n=27): time 0.0009974/0.9245, allocations: 0.5833 MB / 1.401 GB, free: 12.95 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.617e-05/0.9246, allocations: 55.64 kB / 1.401 GB, free: 12.88 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002151/0.9248, allocations: 257.9 kB / 1.402 GB, free: 12.62 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 2.038e-05/0.9248, allocations: 25.7 kB / 1.402 GB, free: 12.59 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 8.705e-05/0.9249, allocations: 207.6 kB / 1.402 GB, free: 12.38 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 5.846e-05/0.925, allocations: 94.59 kB / 1.402 GB, free: 12.29 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.484e-05/0.925, allocations: 0 / 1.402 GB, free: 12.29 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 9.57e-05/0.9251, allocations: 342.8 kB / 1.402 GB, free: 11.95 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001661/0.9253, allocations: 128.7 kB / 1.402 GB, free: 11.82 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002562/0.9255, allocations: 249.5 kB / 1.403 GB, free: 11.52 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002043/0.9257, allocations: 169.8 kB / 1.403 GB, free: 11.36 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.9257, allocations: 3.938 kB / 1.403 GB, free: 11.35 MB / 0.9011 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007196/0.9265, allocations: 495.8 kB / 1.403 GB, free: 10.85 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.055e-05/0.9265, allocations: 4 kB / 1.403 GB, free: 10.85 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.9265, allocations: 4 kB / 1.403 GB, free: 10.84 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002734/0.9268, allocations: 90.39 kB / 1.403 GB, free: 10.75 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003252/0.9271, allocations: 88.2 kB / 1.403 GB, free: 10.66 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.673e-06/0.9271, allocations: 4 kB / 1.403 GB, free: 10.66 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002435/0.9274, allocations: 23.97 kB / 1.403 GB, free: 10.63 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.947e-05/0.9274, allocations: 12 kB / 1.403 GB, free: 10.62 MB / 0.9011 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 9.028e-05/0.9275, allocations: 126.6 kB / 1.404 GB, free: 10.49 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.881e-05/0.9276, allocations: 31.62 kB / 1.404 GB, free: 10.46 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006585/0.9282, allocations: 412 kB / 1.404 GB, free: 10.04 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/0.9283, allocations: 7.984 kB / 1.404 GB, free: 10.04 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/0.9283, allocations: 2.188 kB / 1.404 GB, free: 10.04 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.596e-06/0.9283, allocations: 3.938 kB / 1.404 GB, free: 10.03 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001105/0.9294, allocations: 0.8877 MB / 1.405 GB, free: 9.082 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.9294, allocations: 0 / 1.405 GB, free: 9.082 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002443/0.9296, allocations: 55.89 kB / 1.405 GB, free: 9.027 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000231/0.9299, allocations: 86.61 kB / 1.405 GB, free: 8.934 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.912e-05/0.9299, allocations: 0 / 1.405 GB, free: 8.934 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.387e-06/0.9299, allocations: 4 kB / 1.405 GB, free: 8.93 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.9299, allocations: 0 / 1.405 GB, free: 8.93 MB / 0.9011 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006257/0.9306, allocations: 0.5362 MB / 1.406 GB, free: 8.34 MB / 0.9011 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007434/0.9313, allocations: 0.9292 MB / 1.406 GB, free: 7.355 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001309/0.9315, allocations: 140.6 kB / 1.407 GB, free: 7.199 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.362e-05/0.9315, allocations: 0 / 1.407 GB, free: 7.199 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002219/0.9317, allocations: 19.98 kB / 1.407 GB, free: 7.18 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.486e-05/0.9318, allocations: 19.88 kB / 1.407 GB, free: 7.16 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.003e-05/0.9318, allocations: 9.188 kB / 1.407 GB, free: 7.152 MB / 0.9011 GB Notification: Performance of sort global known variables: time 0.0001521/0.932, allocations: 198.5 kB / 1.407 GB, free: 6.961 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0009135/0.9329, allocations: 87.92 kB / 1.407 GB, free: 6.875 MB / 0.9011 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.000118/0.933, allocations: 103.2 kB / 1.407 GB, free: 6.766 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0006155/0.9337, allocations: 0.5796 MB / 1.408 GB, free: 6.121 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.9337, allocations: 1.062 kB / 1.408 GB, free: 6.121 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0003412/0.934, allocations: 425.7 kB / 1.408 GB, free: 5.641 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005441/0.9346, allocations: 105.3 kB / 1.408 GB, free: 5.547 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008739/0.9355, allocations: 0.5139 MB / 1.409 GB, free: 4.996 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004069/0.9359, allocations: 0.8683 MB / 1.409 GB, free: 4.102 MB / 0.9011 GB Notification: Performance of SimCode: time 2.5e-07/0.9359, allocations: 0 / 1.409 GB, free: 4.102 MB / 0.9011 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance_res.mat does not exist to compare? outputFormat=mat