Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.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.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",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.947/1.947, allocations: 387.2 MB / 394.5 MB, free: 13.66 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.001035/0.001036, allocations: 184.6 kB / 487 MB, free: 5.375 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.262/1.262, allocations: 221.3 MB / 0.7819 GB, free: 1.367 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.0009515/0.0009516, allocations: 93.95 kB / 0.9213 GB, free: 2.625 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4719/0.4729, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2104/0.6833, allocations: 142.3 MB / 1.205 GB, free: 26.14 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5534/1.237, allocations: 149 MB / 1.351 GB, free: 15.6 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001931/1.237, allocations: 76.67 kB / 1.351 GB, free: 15.6 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.006897/1.244, allocations: 2.406 MB / 1.353 GB, free: 15.14 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.339e-05/1.244, allocations: 9.406 kB / 1.353 GB, free: 15.14 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.922e-05/1.244, allocations: 6.375 kB / 1.353 GB, free: 15.13 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.886e-05/1.244, allocations: 165.1 kB / 1.353 GB, free: 14.93 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.357e-06/1.244, allocations: 1.562 kB / 1.353 GB, free: 14.93 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.931e-05/1.244, allocations: 6.203 kB / 1.353 GB, free: 14.93 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.177e-05/1.244, allocations: 28.08 kB / 1.353 GB, free: 14.93 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.125e-05/1.244, allocations: 51.92 kB / 1.354 GB, free: 14.89 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/1.244, allocations: 1.422 kB / 1.354 GB, free: 14.89 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.07e-05/1.244, allocations: 2.188 kB / 1.354 GB, free: 14.89 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/1.244, allocations: 1.156 kB / 1.354 GB, free: 14.89 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001084/1.244, allocations: 143.9 kB / 1.354 GB, free: 14.73 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 5.538e-05/1.244, allocations: 35.5 kB / 1.354 GB, free: 14.71 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.582e-05/1.245, allocations: 27 kB / 1.354 GB, free: 14.7 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002933/1.245, allocations: 0.5531 MB / 1.354 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.583e-05/1.245, allocations: 36 kB / 1.354 GB, free: 14 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=8): time 1.102e-06/1.245, allocations: 0 / 1.354 GB, free: 14 MB / 0.8073 GB Notification: Performance of matching and sorting (n=15): time 0.001596/1.246, allocations: 0.8547 MB / 1.355 GB, free: 13.3 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.513e-05/1.246, allocations: 52.91 kB / 1.355 GB, free: 13.24 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.38e-05/1.247, allocations: 86.42 kB / 1.355 GB, free: 13.15 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.238e-05/1.247, allocations: 26.91 kB / 1.355 GB, free: 13.12 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 1.257e-05/1.247, allocations: 84.27 kB / 1.355 GB, free: 13.03 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 3.8e-05/1.247, allocations: 49.52 kB / 1.355 GB, free: 13 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.771e-06/1.247, allocations: 0 / 1.355 GB, free: 13 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 4.351e-05/1.247, allocations: 314.9 kB / 1.356 GB, free: 12.69 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.348e-05/1.247, allocations: 23.56 kB / 1.356 GB, free: 12.69 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.051e-05/1.247, allocations: 57.25 kB / 1.356 GB, free: 12.65 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.28e-05/1.247, allocations: 37.23 kB / 1.356 GB, free: 12.64 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.12e-07/1.247, allocations: 0.75 kB / 1.356 GB, free: 12.64 MB / 0.8073 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002015/1.247, allocations: 117 kB / 1.356 GB, free: 12.6 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.22e-05/1.247, allocations: 4.75 kB / 1.356 GB, free: 12.6 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/1.247, allocations: 1.875 kB / 1.356 GB, free: 12.6 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.279e-05/1.247, allocations: 1.781 kB / 1.356 GB, free: 12.6 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000149/1.247, allocations: 30.95 kB / 1.356 GB, free: 12.59 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/1.247, allocations: 5.938 kB / 1.356 GB, free: 12.59 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.996e-05/1.247, allocations: 2 kB / 1.356 GB, free: 12.59 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.29e-05/1.247, allocations: 5.328 kB / 1.356 GB, free: 12.59 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.338e-05/1.247, allocations: 112.3 kB / 1.356 GB, free: 12.48 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.558e-05/1.247, allocations: 10.16 kB / 1.356 GB, free: 12.47 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002917/1.248, allocations: 124.9 kB / 1.356 GB, free: 12.43 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.975e-06/1.248, allocations: 2.156 kB / 1.356 GB, free: 12.43 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/1.248, allocations: 0.8438 kB / 1.356 GB, free: 12.43 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.409e-06/1.248, allocations: 5.453 kB / 1.356 GB, free: 12.43 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003961/1.248, allocations: 377.8 kB / 1.357 GB, free: 12.12 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/1.248, allocations: 1.875 kB / 1.357 GB, free: 12.12 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001395/1.248, allocations: 31.69 kB / 1.357 GB, free: 12.12 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/1.248, allocations: 4.484 kB / 1.357 GB, free: 12.12 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.142e-05/1.248, allocations: 2.25 kB / 1.357 GB, free: 12.12 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/1.248, allocations: 6.062 kB / 1.357 GB, free: 12.11 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.489e-06/1.248, allocations: 8.75 kB / 1.357 GB, free: 12.11 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002732/1.249, allocations: 306.2 kB / 1.357 GB, free: 11.87 MB / 0.8073 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003378/1.249, allocations: 0.7103 MB / 1.358 GB, free: 11.25 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.073e-05/1.249, allocations: 84.67 kB / 1.358 GB, free: 11.16 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.005e-05/1.249, allocations: 2.344 kB / 1.358 GB, free: 11.16 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001043/1.249, allocations: 3 kB / 1.358 GB, free: 11.16 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.374e-05/1.249, allocations: 12.59 kB / 1.358 GB, free: 11.15 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.32e-05/1.249, allocations: 8.156 kB / 1.358 GB, free: 11.15 MB / 0.8073 GB Notification: Performance of sort global known variables: time 1.489e-05/1.249, allocations: 80.47 kB / 1.358 GB, free: 11.07 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0008319/1.25, allocations: 38.61 kB / 1.358 GB, free: 11.06 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (y_comp) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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.0001904/1.25, allocations: 139.7 kB / 1.358 GB, free: 10.96 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001414/1.25, allocations: 71.08 kB / 1.358 GB, free: 10.96 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/1.25, allocations: 352 / 1.358 GB, free: 10.96 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 5.932e-05/1.25, allocations: 49.78 kB / 1.358 GB, free: 10.95 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001382/1.251, allocations: 2.5 kB / 1.358 GB, free: 10.95 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000357/1.251, allocations: 158.3 kB / 1.358 GB, free: 10.83 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001586/1.251, allocations: 0.7124 MB / 1.359 GB, free: 10.12 MB / 0.8073 GB Notification: Performance of SimCode: time 2.6e-07/1.251, allocations: 0 / 1.359 GB, free: 10.12 MB / 0.8073 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat does not exist to compare? outputFormat=mat