Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothHeaviside.conf.json 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/IDEAS 3.0.0-master/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_SmoothHeaviside",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/Complex 4.0.0+maint.om/package.mo): time 0.003397/0.003397, allocations: 181.6 kB / 7.454 MB, free: 2.516 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7115/0.7115, allocations: 133.5 MB / 141.4 MB, free: 15.64 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.55/1.55, allocations: 221.3 MB / 395 MB, free: 10.11 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009326/0.0009325, allocations: 104.8 kB / 477.8 MB, free: 10.7 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5263/0.5273, allocations: 88.43 MB / 0.5529 GB, free: 89.05 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2102/0.7375, allocations: 82.3 MB / 0.6333 GB, free: 13.84 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5706/1.308, allocations: 110.9 MB / 0.7416 GB, free: 11.01 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002595/1.308, allocations: 77.39 kB / 0.7417 GB, free: 11.01 MB / 0.4948 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.003435/1.312, allocations: 1.131 MB / 0.7428 GB, free: 26.62 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/1.312, allocations: 11.53 kB / 0.7428 GB, free: 26.62 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.065e-05/1.312, allocations: 5.125 kB / 0.7428 GB, free: 26.62 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001065/1.312, allocations: 164.1 kB / 0.743 GB, free: 26.42 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.431e-05/1.312, allocations: 5.359 kB / 0.743 GB, free: 26.42 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.041e-05/1.312, allocations: 3.938 kB / 0.743 GB, free: 26.41 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.023e-05/1.312, allocations: 18.72 kB / 0.743 GB, free: 26.41 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.027e-05/1.312, allocations: 33.27 kB / 0.743 GB, free: 26.38 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/1.312, allocations: 4 kB / 0.743 GB, free: 26.38 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.516e-06/1.312, allocations: 0 / 0.743 GB, free: 26.38 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/1.312, allocations: 0 / 0.743 GB, free: 26.38 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003849/1.313, allocations: 255 kB / 0.7433 GB, free: 26.14 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 4.787e-05/1.313, allocations: 22.05 kB / 0.7433 GB, free: 26.11 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.24e-05/1.313, allocations: 8.672 kB / 0.7433 GB, free: 26.11 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001321/1.313, allocations: 82.3 kB / 0.7434 GB, free: 26.01 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.298e-05/1.313, allocations: 39.17 kB / 0.7434 GB, free: 25.97 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=2): time 1.173e-06/1.313, allocations: 0 / 0.7434 GB, free: 25.97 MB / 0.5105 GB Notification: Performance of matching and sorting (n=2): time 0.0002553/1.313, allocations: 54.09 kB / 0.7435 GB, free: 25.94 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.878e-05/1.313, allocations: 56.75 kB / 0.7435 GB, free: 25.87 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.226e-05/1.313, allocations: 93.91 kB / 0.7436 GB, free: 25.78 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 1.353e-05/1.313, allocations: 25.7 kB / 0.7436 GB, free: 25.75 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 3.63e-05/1.313, allocations: 91.83 kB / 0.7437 GB, free: 25.66 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 1.535e-05/1.313, allocations: 3.938 kB / 0.7437 GB, free: 25.66 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.316e-06/1.313, allocations: 0 / 0.7437 GB, free: 25.66 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000135/1.314, allocations: 320.1 kB / 0.744 GB, free: 25.34 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.459e-05/1.314, allocations: 3.844 kB / 0.744 GB, free: 25.34 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.2e-05/1.314, allocations: 11.12 kB / 0.7441 GB, free: 25.34 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.413e-05/1.314, allocations: 13.38 kB / 0.7441 GB, free: 25.34 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/1.314, allocations: 0 / 0.7441 GB, free: 25.34 MB / 0.5105 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001349/1.314, allocations: 58.92 kB / 0.7441 GB, free: 25.3 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.193e-05/1.314, allocations: 3.844 kB / 0.7441 GB, free: 25.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/1.314, allocations: 0 / 0.7441 GB, free: 25.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/1.314, allocations: 1.547 kB / 0.7441 GB, free: 25.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001016/1.314, allocations: 14.42 kB / 0.7441 GB, free: 25.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/1.314, allocations: 7.75 kB / 0.7441 GB, free: 25.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.237e-05/1.314, allocations: 6.281 kB / 0.7442 GB, free: 25.29 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.803e-06/1.314, allocations: 3.969 kB / 0.7442 GB, free: 25.29 MB / 0.5105 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 (2): * Single equations (assignments): 2 * 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.29e-05/1.314, allocations: 101 kB / 0.7443 GB, free: 25.19 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.587e-05/1.314, allocations: 1.359 kB / 0.7443 GB, free: 25.19 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002093/1.314, allocations: 64.62 kB / 0.7443 GB, free: 25.14 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/1.314, allocations: 3.984 kB / 0.7443 GB, free: 25.14 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.273e-06/1.314, allocations: 0 / 0.7443 GB, free: 25.14 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/1.314, allocations: 3.938 kB / 0.7443 GB, free: 25.13 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001434/1.315, allocations: 136.4 kB / 0.7445 GB, free: 24.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/1.315, allocations: 0 / 0.7445 GB, free: 24.98 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.612e-05/1.315, allocations: 13.25 kB / 0.7445 GB, free: 24.98 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/1.315, allocations: 4.031 kB / 0.7445 GB, free: 24.97 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.005e-06/1.315, allocations: 5.531 kB / 0.7445 GB, free: 24.97 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/1.315, allocations: 4.781 kB / 0.7445 GB, free: 24.96 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/1.315, allocations: 0 / 0.7445 GB, free: 24.96 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001757/1.315, allocations: 145 kB / 0.7446 GB, free: 24.84 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003475/1.315, allocations: 0.5228 MB / 0.7451 GB, free: 24.32 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 4.471e-05/1.315, allocations: 85.52 kB / 0.7452 GB, free: 24.23 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.717e-05/1.315, allocations: 0 / 0.7452 GB, free: 24.23 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.054e-05/1.315, allocations: 11.27 kB / 0.7452 GB, free: 24.23 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.89e-05/1.315, allocations: 4.703 kB / 0.7452 GB, free: 24.23 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.989e-06/1.316, allocations: 4 kB / 0.7452 GB, free: 24.22 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.462e-05/1.316, allocations: 88.36 kB / 0.7453 GB, free: 24.14 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0007607/1.316, allocations: 11.78 kB / 0.7453 GB, free: 24.14 MB / 0.5105 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 (2): * Single equations (assignments): 2 * 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.0001661/1.316, allocations: 99.19 kB / 0.7454 GB, free: 24.05 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 7.726e-05/1.317, allocations: 14.31 kB / 0.7454 GB, free: 24.05 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.664e-06/1.317, allocations: 3.844 kB / 0.7454 GB, free: 24.05 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 1.862e-05/1.317, allocations: 4.578 kB / 0.7454 GB, free: 24.05 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001954/1.317, allocations: 5.219 kB / 0.7454 GB, free: 24.05 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002336/1.317, allocations: 70.03 kB / 0.7455 GB, free: 23.97 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002857/1.317, allocations: 0.6936 MB / 0.7462 GB, free: 23.27 MB / 0.5105 GB Notification: Performance of SimCode: time 2.5e-07/1.317, allocations: 0 / 0.7462 GB, free: 23.27 MB / 0.5105 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothHeaviside.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Math_Examples_SmoothHeaviside_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_Math_Examples_SmoothHeaviside.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1)