Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.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.SmoothHeavisideDerivatives,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",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.7092/0.7092, allocations: 141.8 MB / 149.1 MB, free: 13.52 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001078/0.001078, allocations: 186.1 kB / 182 MB, free: 10.16 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.225/1.225, allocations: 221.3 MB / 436 MB, free: 2.703 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.0009992/0.0009988, allocations: 95.97 kB / 0.507 GB, free: 17.75 MB / 378.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001798/0.001798, allocations: 274.4 kB / 0.5885 GB, free: 4.176 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.3616/0.3634, allocations: 89.66 MB / 0.676 GB, free: 136.6 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1443/0.5078, allocations: 82.77 MB / 0.7569 GB, free: 83.78 MB / 0.5107 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1136/0.6214, allocations: 107.7 MB / 0.862 GB, free: 7.906 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002577/0.6217, allocations: 80.84 kB / 0.8621 GB, free: 7.828 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.00234/0.6241, allocations: 0.8669 MB / 0.863 GB, free: 6.914 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 3.513e-05/0.6241, allocations: 8 kB / 0.863 GB, free: 6.906 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.489e-05/0.6241, allocations: 3.938 kB / 0.863 GB, free: 6.902 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.484e-05/0.6242, allocations: 159.1 kB / 0.8631 GB, free: 6.707 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.013e-05/0.6243, allocations: 3.906 kB / 0.8631 GB, free: 6.703 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.089e-05/0.6243, allocations: 7.938 kB / 0.8631 GB, free: 6.695 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.905e-05/0.6243, allocations: 11.98 kB / 0.8632 GB, free: 6.684 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.174e-05/0.6244, allocations: 29.7 kB / 0.8632 GB, free: 6.648 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.6244, allocations: 3.984 kB / 0.8632 GB, free: 6.645 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.883e-06/0.6244, allocations: 0 / 0.8632 GB, free: 6.645 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.6244, allocations: 0 / 0.8632 GB, free: 6.645 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001189/0.6246, allocations: 138.1 kB / 0.8633 GB, free: 6.473 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000133/0.6247, allocations: 17.72 kB / 0.8633 GB, free: 6.449 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.908e-05/0.6247, allocations: 8.859 kB / 0.8633 GB, free: 6.438 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001465/0.6249, allocations: 101.2 kB / 0.8634 GB, free: 6.32 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.807e-05/0.6249, allocations: 34.5 kB / 0.8635 GB, free: 6.277 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=3): time 1.103e-06/0.6249, allocations: 0 / 0.8635 GB, free: 6.277 MB / 0.5419 GB Notification: Performance of matching and sorting (n=5): time 0.002607/0.6275, allocations: 349.4 kB / 0.8638 GB, free: 5.93 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.345e-05/0.6276, allocations: 63.31 kB / 0.8639 GB, free: 5.855 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.096e-05/0.6276, allocations: 89 kB / 0.864 GB, free: 5.762 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 2.108e-05/0.6277, allocations: 25.7 kB / 0.864 GB, free: 5.73 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 2.581e-05/0.6277, allocations: 80.14 kB / 0.8641 GB, free: 5.648 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 3.525e-05/0.6277, allocations: 15.73 kB / 0.8641 GB, free: 5.633 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.176e-05/0.6278, allocations: 0 / 0.8641 GB, free: 5.633 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 0.0001175/0.6279, allocations: 318.8 kB / 0.8644 GB, free: 5.312 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.708e-05/0.6279, allocations: 7.938 kB / 0.8644 GB, free: 5.305 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.148e-05/0.628, allocations: 34.64 kB / 0.8644 GB, free: 5.262 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001025/0.6281, allocations: 15.97 kB / 0.8644 GB, free: 5.246 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.72e-07/0.6281, allocations: 0 / 0.8644 GB, free: 5.246 MB / 0.5419 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002072/0.6283, allocations: 69.59 kB / 0.8645 GB, free: 5.172 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.18e-05/0.6283, allocations: 8 kB / 0.8645 GB, free: 5.164 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.6283, allocations: 0 / 0.8645 GB, free: 5.164 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.099e-05/0.6284, allocations: 3.906 kB / 0.8645 GB, free: 5.16 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004288/0.6288, allocations: 52.06 kB / 0.8646 GB, free: 5.109 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.258e-06/0.6288, allocations: 0 / 0.8646 GB, free: 5.109 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003574/0.6292, allocations: 39.98 kB / 0.8646 GB, free: 5.07 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.524e-05/0.6292, allocations: 0 / 0.8646 GB, free: 5.07 MB / 0.5419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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.195e-05/0.6293, allocations: 114 kB / 0.8647 GB, free: 4.953 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.626e-05/0.6293, allocations: 3.938 kB / 0.8647 GB, free: 4.949 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004084/0.6297, allocations: 109 kB / 0.8648 GB, free: 4.836 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.6297, allocations: 0 / 0.8648 GB, free: 4.836 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.6297, allocations: 0 / 0.8648 GB, free: 4.836 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.6297, allocations: 0 / 0.8648 GB, free: 4.836 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003979/0.6301, allocations: 287.1 kB / 0.8651 GB, free: 4.512 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.6302, allocations: 0 / 0.8651 GB, free: 4.512 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004165/0.6306, allocations: 51.91 kB / 0.8651 GB, free: 4.461 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.6306, allocations: 0 / 0.8651 GB, free: 4.461 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.996e-05/0.6306, allocations: 7.984 kB / 0.8651 GB, free: 4.453 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.6306, allocations: 0 / 0.8651 GB, free: 4.453 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.6306, allocations: 0 / 0.8651 GB, free: 4.453 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002396/0.6309, allocations: 155.4 kB / 0.8653 GB, free: 4.285 MB / 0.5419 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000343/0.6312, allocations: 0.5353 MB / 0.8658 GB, free: 3.73 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 3.722e-05/0.6313, allocations: 81.02 kB / 0.8659 GB, free: 3.633 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.652e-05/0.6313, allocations: 4 kB / 0.8659 GB, free: 3.629 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003849/0.6317, allocations: 39.97 kB / 0.8659 GB, free: 3.59 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.256e-05/0.6317, allocations: 4 kB / 0.8659 GB, free: 3.586 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.241e-05/0.6317, allocations: 3.938 kB / 0.8659 GB, free: 3.582 MB / 0.5419 GB Notification: Performance of sort global known variables: time 2.652e-05/0.6318, allocations: 75.28 kB / 0.866 GB, free: 3.508 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0007994/0.6326, allocations: 12 kB / 0.866 GB, free: 3.496 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 (5): * Single equations (assignments): 5 * 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.0001476/0.6327, allocations: 111.2 kB / 0.8661 GB, free: 3.379 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.0001268/0.6329, allocations: 20 kB / 0.8662 GB, free: 3.359 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.6329, allocations: 4 kB / 0.8662 GB, free: 3.355 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 5.257e-05/0.6329, allocations: 19.92 kB / 0.8662 GB, free: 3.336 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001238/0.633, allocations: 3.906 kB / 0.8662 GB, free: 3.332 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006235/0.6337, allocations: 96.23 kB / 0.8663 GB, free: 3.215 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003588/0.634, allocations: 0.6919 MB / 0.8669 GB, free: 2.496 MB / 0.5419 GB Notification: Performance of SimCode: time 2.7e-07/0.6341, allocations: 4 kB / 0.8669 GB, free: 2.492 MB / 0.5419 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1)