Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource.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.Sources.Examples.FixedVoltageSource,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Sources_Examples_FixedVoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Sources_Examples_FixedVoltageSource",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.836/1.836, allocations: 390.4 MB / 397.7 MB, free: 11.24 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.0009985/0.0009986, allocations: 196.1 kB / 490.8 MB, free: 1.934 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.131/1.131, allocations: 221.4 MB / 0.7863 GB, free: 13.67 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009244/0.0009243, allocations: 92.7 kB / 0.9264 GB, free: 14.21 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.4358/0.4368, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1874/0.6242, allocations: 143 MB / 1.212 GB, free: 40.04 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5387/1.163, allocations: 168.6 MB / 1.376 GB, free: 17.11 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002764/1.163, allocations: 93.88 kB / 1.376 GB, free: 17.11 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0289/1.192, allocations: 13.1 MB / 1.389 GB, free: 29.24 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.606e-05/1.192, allocations: 16.41 kB / 1.389 GB, free: 29.23 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000611/1.193, allocations: 76.5 kB / 1.389 GB, free: 29.2 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002638/1.193, allocations: 226.6 kB / 1.39 GB, free: 28.97 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.386e-05/1.193, allocations: 4.625 kB / 1.39 GB, free: 28.97 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.413e-05/1.193, allocations: 8.094 kB / 1.39 GB, free: 28.97 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002901/1.193, allocations: 158.1 kB / 1.39 GB, free: 28.95 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003176/1.194, allocations: 266.4 kB / 1.39 GB, free: 28.8 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.403e-05/1.194, allocations: 1 kB / 1.39 GB, free: 28.8 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.182e-05/1.194, allocations: 1 kB / 1.39 GB, free: 28.8 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.179e-05/1.194, allocations: 15.91 kB / 1.39 GB, free: 28.79 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001573/1.195, allocations: 1.629 MB / 1.392 GB, free: 27.36 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 7.702e-05/1.196, allocations: 75.75 kB / 1.392 GB, free: 27.3 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.089e-05/1.196, allocations: 50.25 kB / 1.392 GB, free: 27.27 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.27e-05/1.196, allocations: 1.281 kB / 1.392 GB, free: 27.27 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.273e-05/1.196, allocations: 31.5 kB / 1.392 GB, free: 27.23 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 2.344e-06/1.196, allocations: 0 / 1.392 GB, free: 27.23 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8): time 0.0004206/1.196, allocations: 181.3 kB / 1.392 GB, free: 27.14 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.092e-05/1.196, allocations: 82.39 kB / 1.392 GB, free: 27.04 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001822/1.196, allocations: 189.8 kB / 1.392 GB, free: 26.93 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.177e-05/1.196, allocations: 25.7 kB / 1.392 GB, free: 26.89 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.974e-05/1.196, allocations: 160.1 kB / 1.392 GB, free: 26.75 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.966e-05/1.196, allocations: 31.27 kB / 1.392 GB, free: 26.73 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.085e-05/1.196, allocations: 0 / 1.392 GB, free: 26.73 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.039e-05/1.197, allocations: 322 kB / 1.393 GB, free: 26.42 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001021/1.197, allocations: 75.78 kB / 1.393 GB, free: 26.41 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001248/1.197, allocations: 154.9 kB / 1.393 GB, free: 26.29 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000196/1.197, allocations: 104.6 kB / 1.393 GB, free: 26.27 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/1.197, allocations: 1.219 kB / 1.393 GB, free: 26.27 MB / 0.8386 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004226/1.197, allocations: 275.5 kB / 1.393 GB, free: 26.17 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003051/1.198, allocations: 1.131 MB / 1.394 GB, free: 24.98 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/1.198, allocations: 2.5 kB / 1.394 GB, free: 24.98 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/1.198, allocations: 8.609 kB / 1.394 GB, free: 24.98 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002362/1.198, allocations: 49.72 kB / 1.394 GB, free: 24.97 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.107e-06/1.198, allocations: 4.406 kB / 1.394 GB, free: 24.97 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002178/1.198, allocations: 20.55 kB / 1.394 GB, free: 24.96 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.309e-05/1.198, allocations: 12.19 kB / 1.394 GB, free: 24.96 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 6.913e-06/1.198, allocations: 3.188 kB / 1.394 GB, free: 24.96 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003282/1.199, allocations: 197.9 kB / 1.395 GB, free: 24.91 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/1.199, allocations: 2.719 kB / 1.395 GB, free: 24.91 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.911e-06/1.199, allocations: 4.031 kB / 1.395 GB, free: 24.91 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001738/1.199, allocations: 48.11 kB / 1.395 GB, free: 24.9 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.783e-06/1.199, allocations: 16.08 kB / 1.395 GB, free: 24.89 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001428/1.199, allocations: 10.62 kB / 1.395 GB, free: 24.89 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.735e-05/1.199, allocations: 12.81 kB / 1.395 GB, free: 24.88 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.151e-05/1.199, allocations: 114.3 kB / 1.395 GB, free: 24.77 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.06e-05/1.199, allocations: 17.58 kB / 1.395 GB, free: 24.76 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001653/1.199, allocations: 109.6 kB / 1.395 GB, free: 24.7 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/1.199, allocations: 1.156 kB / 1.395 GB, free: 24.7 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/1.199, allocations: 1.062 kB / 1.395 GB, free: 24.7 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/1.199, allocations: 1.125 kB / 1.395 GB, free: 24.7 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005621/1.2, allocations: 0.5842 MB / 1.395 GB, free: 24.23 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/1.2, allocations: 1.469 kB / 1.395 GB, free: 24.23 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.428e-05/1.2, allocations: 20.89 kB / 1.396 GB, free: 24.22 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.179e-06/1.2, allocations: 3.406 kB / 1.396 GB, free: 24.22 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.989e-06/1.2, allocations: 6.812 kB / 1.396 GB, free: 24.22 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/1.2, allocations: 10.59 kB / 1.396 GB, free: 24.21 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/1.2, allocations: 4.969 kB / 1.396 GB, free: 24.21 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002049/1.2, allocations: 333.9 kB / 1.396 GB, free: 23.88 MB / 0.8386 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002879/1.201, allocations: 0.7051 MB / 1.397 GB, free: 23.18 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 7.012e-05/1.201, allocations: 104.5 kB / 1.397 GB, free: 23.07 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.341e-05/1.201, allocations: 6.375 kB / 1.397 GB, free: 23.07 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001438/1.201, allocations: 7.953 kB / 1.397 GB, free: 23.07 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.147e-05/1.201, allocations: 10.84 kB / 1.397 GB, free: 23.06 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.524e-06/1.201, allocations: 3.625 kB / 1.397 GB, free: 23.06 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0001255/1.201, allocations: 160.8 kB / 1.397 GB, free: 22.97 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.001551/1.203, allocations: 81.12 kB / 1.397 GB, free: 22.96 MB / 0.8386 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 (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001422/1.203, allocations: 126.4 kB / 1.397 GB, free: 22.86 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003968/1.203, allocations: 266.5 kB / 1.397 GB, free: 22.81 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/1.203, allocations: 0 / 1.397 GB, free: 22.81 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.615e-05/1.203, allocations: 41.64 kB / 1.397 GB, free: 22.8 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002564/1.203, allocations: 25.17 kB / 1.397 GB, free: 22.8 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000507/1.204, allocations: 277.8 kB / 1.398 GB, free: 22.61 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003065/1.204, allocations: 0.764 MB / 1.398 GB, free: 21.88 MB / 0.8386 GB Notification: Performance of SimCode: time 4.31e-07/1.204, allocations: 0 / 1.398 GB, free: 21.88 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_OnePhase_Sources_Examples_FixedVoltageSource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_OnePhase_Sources_Examples_FixedVoltageSource.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource_res.mat does not exist to compare? outputFormat=mat