Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SpliceFunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction,fileNamePrefix="BuildingSystems_BuildingSystems_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/BuildingSystems 2.0.0-master/package.mo): time 0.7332/0.7332, allocations: 141.8 MB / 149.1 MB, free: 1.445 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00114/0.00114, allocations: 189.2 kB / 182 MB, free: 0.7578 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.233/1.233, allocations: 221.4 MB / 436 MB, free: 5.484 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009228/0.0009228, allocations: 100.7 kB / 0.507 GB, free: 2.168 MB / 410.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00173/0.00173, allocations: 280.7 kB / 0.5885 GB, free: 47.24 MB / 410.9 MB Notification: Performance of FrontEnd - loaded program: time 0.3296/0.3314, allocations: 89.65 MB / 0.676 GB, free: 59.61 MB / 442.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1442/0.4756, allocations: 82.77 MB / 0.7568 GB, free: 0.5977 MB / 442.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1329/0.6085, allocations: 108.1 MB / 0.8624 GB, free: 4.305 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002006/0.6088, allocations: 77.98 kB / 0.8625 GB, free: 4.23 MB / 0.5419 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.005039/0.6138, allocations: 1.696 MB / 0.8642 GB, free: 2.488 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.6139, allocations: 9 kB / 0.8642 GB, free: 2.48 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.791e-05/0.6139, allocations: 0 / 0.8642 GB, free: 2.48 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.316e-05/0.614, allocations: 167 kB / 0.8643 GB, free: 2.277 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.678e-06/0.614, allocations: 0 / 0.8643 GB, free: 2.277 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.057e-06/0.614, allocations: 3.906 kB / 0.8643 GB, free: 2.273 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.84e-05/0.6141, allocations: 0 / 0.8643 GB, free: 2.273 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 4.944e-05/0.6141, allocations: 37.67 kB / 0.8644 GB, free: 2.23 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.492e-06/0.6141, allocations: 7.938 kB / 0.8644 GB, free: 2.223 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.713e-06/0.6142, allocations: 0 / 0.8644 GB, free: 2.223 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.6142, allocations: 4 kB / 0.8644 GB, free: 2.219 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.574e-05/0.6143, allocations: 126.2 kB / 0.8645 GB, free: 2.059 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 2.993e-05/0.6143, allocations: 18.61 kB / 0.8645 GB, free: 2.031 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.369e-05/0.6143, allocations: 5.234 kB / 0.8645 GB, free: 2.023 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003959/0.6147, allocations: 0.5584 MB / 0.8651 GB, free: 1.336 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.231e-05/0.6148, allocations: 38.55 kB / 0.8651 GB, free: 1.289 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.6148, allocations: 0 / 0.8651 GB, free: 1.289 MB / 0.5419 GB Notification: Performance of matching and sorting (n=1): time 0.0001329/0.6149, allocations: 33.61 kB / 0.8651 GB, free: 1.25 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.663e-05/0.6149, allocations: 55.34 kB / 0.8652 GB, free: 1.184 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.553e-05/0.615, allocations: 85 kB / 0.8653 GB, free: 1.094 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 9.929e-06/0.615, allocations: 29.7 kB / 0.8653 GB, free: 1.059 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 2.003e-05/0.615, allocations: 84.17 kB / 0.8654 GB, free: 0.9727 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 1.814e-05/0.615, allocations: 0 / 0.8654 GB, free: 0.9727 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.033e-06/0.615, allocations: 0 / 0.8654 GB, free: 0.9727 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 7.614e-05/0.6151, allocations: 310.8 kB / 0.8657 GB, free: 0.6602 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.791e-06/0.6151, allocations: 0 / 0.8657 GB, free: 0.6602 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.218e-06/0.6151, allocations: 0 / 0.8657 GB, free: 0.6602 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.035e-05/0.6152, allocations: 7.984 kB / 0.8657 GB, free: 0.6523 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.6152, allocations: 0 / 0.8657 GB, free: 0.6523 MB / 0.5419 GB Notification: Performance of matching and sorting (n=1) (initialization): time 6.464e-05/0.6153, allocations: 45.67 kB / 0.8657 GB, free: 0.6016 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 8.647e-06/0.6153, allocations: 4 kB / 0.8657 GB, free: 0.5977 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.526e-06/0.6153, allocations: 0 / 0.8657 GB, free: 0.5977 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.011e-05/0.6153, allocations: 0 / 0.8657 GB, free: 0.5977 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.711e-05/0.6153, allocations: 7.938 kB / 0.8657 GB, free: 0.5898 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.156e-06/0.6153, allocations: 0 / 0.8657 GB, free: 0.5898 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.033e-05/0.6154, allocations: 0 / 0.8657 GB, free: 0.5898 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.029e-06/0.6154, allocations: 0 / 0.8657 GB, free: 0.5898 MB / 0.5419 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.312e-05/0.6154, allocations: 105 kB / 0.8658 GB, free: 492 kB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.285e-06/0.6154, allocations: 7.844 kB / 0.8658 GB, free: 484 kB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.8e-05/0.6155, allocations: 40.73 kB / 0.8659 GB, free: 436 kB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.6156, allocations: 0 / 0.8659 GB, free: 436 kB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.6156, allocations: 0 / 0.8659 GB, free: 436 kB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-06/0.6156, allocations: 0 / 0.8659 GB, free: 436 kB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.892e-05/0.6156, allocations: 130.2 kB / 0.866 GB, free: 268 kB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.02e-07/0.6156, allocations: 0 / 0.866 GB, free: 268 kB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.396e-05/0.6157, allocations: 3.969 kB / 0.866 GB, free: 264 kB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.383e-06/0.6157, allocations: 4 kB / 0.866 GB, free: 260 kB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.202e-06/0.6157, allocations: 3.906 kB / 0.866 GB, free: 256 kB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.6157, allocations: 4 kB / 0.866 GB, free: 252 kB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.6157, allocations: 0 / 0.866 GB, free: 252 kB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 7.535e-05/0.6158, allocations: 65.06 kB / 0.8661 GB, free: 168 kB / 0.5419 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.2002/0.816, allocations: 445.3 kB / 0.8665 GB, free: 168.9 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 2.53e-05/0.8161, allocations: 77.11 kB / 0.8666 GB, free: 168.8 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.856e-05/0.8161, allocations: 0 / 0.8666 GB, free: 168.8 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.581e-05/0.8161, allocations: 3.406 kB / 0.8666 GB, free: 168.8 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.434e-05/0.8161, allocations: 0 / 0.8666 GB, free: 168.8 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.629e-06/0.8162, allocations: 0 / 0.8666 GB, free: 168.8 MB / 0.5419 GB Notification: Performance of sort global known variables: time 1.782e-05/0.8162, allocations: 75.28 kB / 0.8667 GB, free: 168.7 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0008528/0.817, allocations: 9.5 kB / 0.8667 GB, free: 168.7 MB / 0.5419 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.0001975/0.8172, allocations: 116.9 kB / 0.8668 GB, free: 168.6 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 7.748e-05/0.8173, allocations: 7.656 kB / 0.8668 GB, free: 168.6 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.8173, allocations: 0 / 0.8668 GB, free: 168.6 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 5.5e-06/0.8173, allocations: 3.812 kB / 0.8668 GB, free: 168.6 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001033/0.8175, allocations: 3.938 kB / 0.8668 GB, free: 168.6 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001624/0.8176, allocations: 39.78 kB / 0.8668 GB, free: 168.6 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001057/0.8177, allocations: 0.6867 MB / 0.8675 GB, free: 167.9 MB / 0.5419 GB Notification: Performance of SimCode: time 2.5e-07/0.8177, allocations: 1.969 kB / 0.8675 GB, free: 167.9 MB / 0.5419 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SpliceFunction_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SpliceFunction.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.pipe 2>&1)