Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.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.Utilities.Math.Functions.Examples.RegNonZeroPower,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower",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.907/1.907, allocations: 390.4 MB / 397.7 MB, free: 10.65 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.001057/0.001057, allocations: 182.5 kB / 490.8 MB, free: 11.14 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.186/1.186, allocations: 221.4 MB / 0.7863 GB, free: 13.52 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.0008778/0.0008778, allocations: 111.6 kB / 0.9264 GB, free: 4.48 MB / 0.6667 GB Notification: Performance of FrontEnd - loaded program: time 0.2598/0.2607, allocations: 149.1 MB / 1.072 GB, free: 15.43 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5495/0.8102, allocations: 143 MB / 1.212 GB, free: 155.8 MB / 0.8855 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1428/0.9531, allocations: 149.1 MB / 1.357 GB, free: 42.42 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001894/0.9533, allocations: 76.64 kB / 1.357 GB, free: 42.34 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.01032/0.9636, allocations: 4.033 MB / 1.361 GB, free: 38.3 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.9637, allocations: 8 kB / 1.361 GB, free: 38.3 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.441e-05/0.9638, allocations: 0 / 1.361 GB, free: 38.3 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.253e-05/0.9638, allocations: 160.7 kB / 1.361 GB, free: 38.1 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.023e-05/0.9638, allocations: 0 / 1.361 GB, free: 38.1 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.267e-06/0.9639, allocations: 0 / 1.361 GB, free: 38.1 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.434e-05/0.9639, allocations: 7.984 kB / 1.361 GB, free: 38.09 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 4.538e-05/0.964, allocations: 38.3 kB / 1.362 GB, free: 38.05 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.993e-06/0.964, allocations: 0 / 1.362 GB, free: 38.05 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.055e-06/0.964, allocations: 1.031 kB / 1.362 GB, free: 38.05 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.964, allocations: 0 / 1.362 GB, free: 38.05 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.813e-05/0.9641, allocations: 126.8 kB / 1.362 GB, free: 37.89 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 2.772e-05/0.9641, allocations: 15.23 kB / 1.362 GB, free: 37.87 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.57e-05/0.9641, allocations: 7.734 kB / 1.362 GB, free: 37.86 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003638/0.9645, allocations: 431.5 kB / 1.362 GB, free: 37.35 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.409e-05/0.9645, allocations: 31.31 kB / 1.362 GB, free: 37.31 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=1): time 1.213e-06/0.9645, allocations: 4.5 kB / 1.362 GB, free: 37.3 MB / 0.8855 GB Notification: Performance of matching and sorting (n=1): time 0.0001367/0.9647, allocations: 42.09 kB / 1.362 GB, free: 37.26 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.673e-05/0.9647, allocations: 52.66 kB / 1.362 GB, free: 37.2 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.582e-05/0.9647, allocations: 85 kB / 1.362 GB, free: 37.11 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 6.262e-06/0.9648, allocations: 25.7 kB / 1.362 GB, free: 37.07 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 1.042e-05/0.9648, allocations: 84.64 kB / 1.362 GB, free: 36.99 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.313e-05/0.9648, allocations: 0.5625 kB / 1.362 GB, free: 36.99 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.164e-06/0.9648, allocations: 0.75 kB / 1.362 GB, free: 36.99 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 3.968e-05/0.9648, allocations: 315.6 kB / 1.363 GB, free: 36.67 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.111e-06/0.9649, allocations: 0 / 1.363 GB, free: 36.67 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.378e-06/0.9649, allocations: 0.625 kB / 1.363 GB, free: 36.67 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.027e-05/0.9649, allocations: 4.5 kB / 1.363 GB, free: 36.67 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.233e-06/0.9649, allocations: 1.469 kB / 1.363 GB, free: 36.67 MB / 0.8855 GB Notification: Performance of matching and sorting (n=1) (initialization): time 7.021e-05/0.965, allocations: 36.23 kB / 1.363 GB, free: 36.63 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.007e-05/0.965, allocations: 7.984 kB / 1.363 GB, free: 36.62 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-06/0.965, allocations: 4.562 kB / 1.363 GB, free: 36.62 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.376e-06/0.965, allocations: 0 / 1.363 GB, free: 36.62 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.102e-05/0.9651, allocations: 4.438 kB / 1.363 GB, free: 36.61 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.705e-06/0.9651, allocations: 1.25 kB / 1.363 GB, free: 36.61 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.889e-06/0.9651, allocations: 0 / 1.363 GB, free: 36.61 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.831e-06/0.9651, allocations: 4 kB / 1.363 GB, free: 36.61 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * 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 3.404e-05/0.9651, allocations: 104.9 kB / 1.363 GB, free: 36.5 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.13e-05/0.9652, allocations: 0.5625 kB / 1.363 GB, free: 36.5 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.609e-05/0.9653, allocations: 41.53 kB / 1.363 GB, free: 36.46 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.9653, allocations: 0.75 kB / 1.363 GB, free: 36.46 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.9653, allocations: 7.984 kB / 1.363 GB, free: 36.45 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/0.9653, allocations: 0.7812 kB / 1.363 GB, free: 36.45 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.098e-05/0.9653, allocations: 126.2 kB / 1.363 GB, free: 36.29 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.9653, allocations: 0.7188 kB / 1.363 GB, free: 36.29 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.111e-05/0.9654, allocations: 0 / 1.363 GB, free: 36.29 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/0.9654, allocations: 4.594 kB / 1.363 GB, free: 36.29 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.73e-06/0.9654, allocations: 2.25 kB / 1.363 GB, free: 36.29 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.9654, allocations: 0 / 1.363 GB, free: 36.29 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.9654, allocations: 4.906 kB / 1.363 GB, free: 36.29 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 7.349e-05/0.9655, allocations: 58.19 kB / 1.363 GB, free: 36.21 MB / 0.8855 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000111/0.9656, allocations: 443.6 kB / 1.364 GB, free: 35.76 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 1.418e-05/0.9656, allocations: 81.05 kB / 1.364 GB, free: 35.66 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.005e-05/0.9656, allocations: 5.812 kB / 1.364 GB, free: 35.66 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.314e-06/0.9656, allocations: 0 / 1.364 GB, free: 35.66 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.526e-06/0.9656, allocations: 0 / 1.364 GB, free: 35.66 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.763e-06/0.9657, allocations: 0 / 1.364 GB, free: 35.66 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.484e-05/0.9657, allocations: 79.69 kB / 1.364 GB, free: 35.58 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0007705/0.9664, allocations: 19.94 kB / 1.364 GB, free: 35.56 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * 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.0001447/0.9666, allocations: 120.5 kB / 1.364 GB, free: 35.44 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 4.678e-05/0.9667, allocations: 4.594 kB / 1.364 GB, free: 35.43 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.353e-06/0.9667, allocations: 0 / 1.364 GB, free: 35.43 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 5.1e-06/0.9667, allocations: 4.875 kB / 1.364 GB, free: 35.43 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.158e-05/0.9668, allocations: 4.469 kB / 1.364 GB, free: 35.43 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001135/0.9669, allocations: 45.06 kB / 1.364 GB, free: 35.36 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.107e-05/0.967, allocations: 0.6802 MB / 1.365 GB, free: 34.65 MB / 0.8855 GB Notification: Performance of SimCode: time 2.7e-07/0.967, allocations: 0.5938 kB / 1.365 GB, free: 34.65 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower_res.mat does not exist to compare? outputFormat=mat