Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.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.Utilities.Math.Functions.Examples.SpliceFunction,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_SpliceFunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunction,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_SpliceFunction",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.881/1.881, allocations: 387.2 MB / 394.5 MB, free: 13.31 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.001085/0.001085, allocations: 181.3 kB / 487 MB, free: 0.7344 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.196/1.196, allocations: 221.3 MB / 0.7819 GB, free: 6.816 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.0009217/0.0009216, allocations: 112.1 kB / 0.9213 GB, free: 43.7 MB / 0.6198 GB Notification: Performance of FrontEnd - loaded program: time 0.2583/0.2592, allocations: 148.5 MB / 1.066 GB, free: 7.48 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5598/0.819, allocations: 142.3 MB / 1.205 GB, free: 72.7 MB / 0.7917 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1614/0.9804, allocations: 148.7 MB / 1.351 GB, free: 14.5 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002451/0.9808, allocations: 75.95 kB / 1.351 GB, free: 14.42 MB / 0.8542 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.005263/0.986, allocations: 1.727 MB / 1.352 GB, free: 12.66 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.253e-05/0.9861, allocations: 8 kB / 1.352 GB, free: 12.66 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.305e-05/0.9861, allocations: 0.6875 kB / 1.352 GB, free: 12.66 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.351e-05/0.9862, allocations: 160 kB / 1.352 GB, free: 12.46 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.367e-06/0.9862, allocations: 0.75 kB / 1.352 GB, free: 12.46 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.696e-06/0.9862, allocations: 3.906 kB / 1.352 GB, free: 12.46 MB / 0.8542 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.012e-05/0.9863, allocations: 4.5 kB / 1.352 GB, free: 12.45 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 4.336e-05/0.9863, allocations: 26.73 kB / 1.353 GB, free: 12.42 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.49e-06/0.9863, allocations: 0 / 1.353 GB, free: 12.42 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.405e-06/0.9863, allocations: 0.5625 kB / 1.353 GB, free: 12.42 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.697e-06/0.9863, allocations: 3.938 kB / 1.353 GB, free: 12.42 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000106/0.9865, allocations: 131.1 kB / 1.353 GB, free: 12.25 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 3.008e-05/0.9865, allocations: 20.95 kB / 1.353 GB, free: 12.23 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.514e-05/0.9865, allocations: 5.672 kB / 1.353 GB, free: 12.22 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004497/0.987, allocations: 0.5592 MB / 1.353 GB, free: 11.53 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.071e-05/0.987, allocations: 35.09 kB / 1.353 GB, free: 11.49 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=1): time 1.482e-06/0.987, allocations: 1.094 kB / 1.353 GB, free: 11.49 MB / 0.8542 GB Notification: Performance of matching and sorting (n=1): time 0.000137/0.9872, allocations: 37.59 kB / 1.353 GB, free: 11.45 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.384e-05/0.9872, allocations: 52 kB / 1.353 GB, free: 11.38 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.833e-05/0.9872, allocations: 86.16 kB / 1.353 GB, free: 11.29 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.02e-05/0.9872, allocations: 25.7 kB / 1.353 GB, free: 11.26 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 2.126e-05/0.9873, allocations: 80.14 kB / 1.354 GB, free: 11.18 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 2.687e-05/0.9873, allocations: 4.781 kB / 1.354 GB, free: 11.18 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.184e-06/0.9873, allocations: 0 / 1.354 GB, free: 11.18 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 8.746e-05/0.9874, allocations: 315.5 kB / 1.354 GB, free: 10.86 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.873e-06/0.9874, allocations: 1 kB / 1.354 GB, free: 10.86 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.452e-06/0.9874, allocations: 0 / 1.354 GB, free: 10.86 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.286e-05/0.9875, allocations: 9.125 kB / 1.354 GB, free: 10.85 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-06/0.9875, allocations: 0 / 1.354 GB, free: 10.85 MB / 0.8542 GB Notification: Performance of matching and sorting (n=1) (initialization): time 6.889e-05/0.9875, allocations: 40.91 kB / 1.354 GB, free: 10.81 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.169e-05/0.9876, allocations: 8 kB / 1.354 GB, free: 10.8 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.646e-06/0.9876, allocations: 4.125 kB / 1.354 GB, free: 10.8 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.538e-06/0.9876, allocations: 0 / 1.354 GB, free: 10.8 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.639e-05/0.9876, allocations: 0 / 1.354 GB, free: 10.8 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.466e-06/0.9876, allocations: 0 / 1.354 GB, free: 10.8 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.177e-05/0.9877, allocations: 1.062 kB / 1.354 GB, free: 10.8 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.175e-06/0.9877, allocations: 4 kB / 1.354 GB, free: 10.79 MB / 0.8542 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 5.044e-05/0.9877, allocations: 101 kB / 1.354 GB, free: 10.69 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.406e-06/0.9877, allocations: 3.906 kB / 1.354 GB, free: 10.68 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001106/0.9879, allocations: 52.62 kB / 1.354 GB, free: 10.63 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.9879, allocations: 0 / 1.354 GB, free: 10.63 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.9879, allocations: 0 / 1.354 GB, free: 10.63 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.9879, allocations: 0 / 1.354 GB, free: 10.63 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001006/0.988, allocations: 126.2 kB / 1.354 GB, free: 10.47 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.988, allocations: 0 / 1.354 GB, free: 10.47 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.804e-05/0.988, allocations: 4.562 kB / 1.354 GB, free: 10.46 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.988, allocations: 3.938 kB / 1.354 GB, free: 10.46 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.011e-06/0.988, allocations: 7.938 kB / 1.354 GB, free: 10.45 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-06/0.988, allocations: 0.875 kB / 1.354 GB, free: 10.45 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.988, allocations: 0 / 1.354 GB, free: 10.45 MB / 0.8542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 7.69e-05/0.9881, allocations: 59.86 kB / 1.354 GB, free: 10.38 MB / 0.8542 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001597/0.9883, allocations: 445.5 kB / 1.355 GB, free: 9.922 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.763e-05/0.9883, allocations: 85.09 kB / 1.355 GB, free: 9.82 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.898e-06/0.9883, allocations: 0 / 1.355 GB, free: 9.82 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.164e-05/0.9884, allocations: 3.984 kB / 1.355 GB, free: 9.816 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.254e-05/0.9884, allocations: 4.938 kB / 1.355 GB, free: 9.812 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.954e-06/0.9884, allocations: 1.031 kB / 1.355 GB, free: 9.812 MB / 0.8542 GB Notification: Performance of sort global known variables: time 2.261e-05/0.9884, allocations: 75.28 kB / 1.355 GB, free: 9.738 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0007536/0.9892, allocations: 7.906 kB / 1.355 GB, free: 9.73 MB / 0.8542 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.0001338/0.9893, allocations: 119.2 kB / 1.355 GB, free: 9.605 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 4.393e-05/0.9894, allocations: 4 kB / 1.355 GB, free: 9.602 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.9894, allocations: 0 / 1.355 GB, free: 9.602 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 6.212e-06/0.9894, allocations: 4 kB / 1.355 GB, free: 9.598 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.983e-05/0.9895, allocations: 0 / 1.355 GB, free: 9.598 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000127/0.9896, allocations: 47.7 kB / 1.355 GB, free: 9.531 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002199/0.9898, allocations: 0.6841 MB / 1.356 GB, free: 8.82 MB / 0.8542 GB Notification: Performance of SimCode: time 2.31e-07/0.9898, allocations: 0 / 1.356 GB, free: 8.82 MB / 0.8542 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_SpliceFunction_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Functions_Examples_SpliceFunction.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction_res.mat does not exist to compare? outputFormat=mat