Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.RegStep.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.Functions.Examples.RegStep,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_RegStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.RegStep,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_RegStep",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001453/0.001452, allocations: 173.6 kB / 12.73 MB, free: 2.586 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8553/0.8553, allocations: 133.4 MB / 146.7 MB, free: 10.79 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.695/1.695, allocations: 221.3 MB / 400.4 MB, free: 5.793 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.00111/0.00111, allocations: 103.2 kB / 483.3 MB, free: 5.789 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 4.83e-05/4.843e-05, allocations: 4.75 kB / 0.5601 GB, free: 87.79 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1707/0.1707, allocations: 82.3 MB / 0.6405 GB, free: 7.703 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6032/0.774, allocations: 110.5 MB / 0.7484 GB, free: 12.05 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000222/0.7743, allocations: 79.84 kB / 0.7485 GB, free: 12.05 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.001756/0.776, allocations: 0.5323 MB / 0.749 GB, free: 27.73 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.124e-06/0.776, allocations: 0 / 0.749 GB, free: 27.73 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 5.61e-06/0.7761, allocations: 0 / 0.749 GB, free: 27.73 MB / 0.5105 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.0002565/0.7763, allocations: 315 kB / 0.7493 GB, free: 27.39 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.426e-05/0.7764, allocations: 12.91 kB / 0.7494 GB, free: 27.39 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.404e-05/0.7764, allocations: 34.08 kB / 0.7494 GB, free: 27.35 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001693/0.7766, allocations: 14.11 kB / 0.7494 GB, free: 27.35 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001055/0.7767, allocations: 166.8 kB / 0.7496 GB, free: 27.15 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.177e-05/0.7767, allocations: 3.938 kB / 0.7496 GB, free: 27.15 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.226e-05/0.7767, allocations: 0 / 0.7496 GB, free: 27.15 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.118e-05/0.7768, allocations: 35.94 kB / 0.7496 GB, free: 27.12 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.096e-06/0.7769, allocations: 0 / 0.7496 GB, free: 27.12 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.568e-06/0.7769, allocations: 0 / 0.7496 GB, free: 27.12 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.09e-06/0.7769, allocations: 4 kB / 0.7496 GB, free: 27.11 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.424e-05/0.7769, allocations: 1.75 kB / 0.7496 GB, free: 27.11 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001245/0.777, allocations: 156.2 kB / 0.7497 GB, free: 26.92 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 3.583e-05/0.7771, allocations: 18.52 kB / 0.7498 GB, free: 26.89 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.72e-05/0.7771, allocations: 8.703 kB / 0.7498 GB, free: 26.89 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 1.742e-05/0.7771, allocations: 0 / 0.7498 GB, free: 26.89 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.158e-05/0.7772, allocations: 38.08 kB / 0.7498 GB, free: 26.84 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=1): time 7.31e-07/0.7772, allocations: 0 / 0.7498 GB, free: 26.84 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1): time 0.0001143/0.7773, allocations: 33.33 kB / 0.7498 GB, free: 26.81 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.3e-05/0.7773, allocations: 55.34 kB / 0.7499 GB, free: 26.75 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.237e-05/0.7774, allocations: 85 kB / 0.75 GB, free: 26.66 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 1.296e-05/0.7774, allocations: 29.55 kB / 0.75 GB, free: 26.62 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 2.864e-05/0.7774, allocations: 80.14 kB / 0.7501 GB, free: 26.54 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 2.705e-05/0.7775, allocations: 4.688 kB / 0.7501 GB, free: 26.54 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.166e-06/0.7775, allocations: 0 / 0.7501 GB, free: 26.54 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000136/0.7776, allocations: 318.2 kB / 0.7504 GB, free: 26.22 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.246e-05/0.7776, allocations: 0 / 0.7504 GB, free: 26.22 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.904e-06/0.7776, allocations: 11.72 kB / 0.7504 GB, free: 26.21 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.201e-05/0.7777, allocations: 0 / 0.7504 GB, free: 26.21 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.7777, allocations: 0 / 0.7504 GB, free: 26.21 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.355e-05/0.7777, allocations: 40.94 kB / 0.7504 GB, free: 26.18 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.38e-05/0.7778, allocations: 7.438 kB / 0.7504 GB, free: 26.18 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.7778, allocations: 3.75 kB / 0.7504 GB, free: 26.18 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.091e-05/0.7778, allocations: 4.094 kB / 0.7505 GB, free: 26.18 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.495e-05/0.7779, allocations: 3.781 kB / 0.7505 GB, free: 26.18 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.7779, allocations: 0 / 0.7505 GB, free: 26.18 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.052e-05/0.7779, allocations: 3.875 kB / 0.7505 GB, free: 26.18 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.546e-06/0.7779, allocations: 3.328 kB / 0.7505 GB, free: 26.18 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 (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 6.423e-05/0.778, allocations: 101 kB / 0.7506 GB, free: 26.07 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.925e-06/0.778, allocations: 3.953 kB / 0.7506 GB, free: 26.07 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.853e-05/0.778, allocations: 7.109 kB / 0.7506 GB, free: 26.06 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-06/0.778, allocations: 4 kB / 0.7506 GB, free: 26.05 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.556e-06/0.7781, allocations: 3.875 kB / 0.7506 GB, free: 26.05 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.7781, allocations: 0 / 0.7506 GB, free: 26.05 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.304e-05/0.7781, allocations: 148.8 kB / 0.7507 GB, free: 25.87 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.7781, allocations: 3.938 kB / 0.7507 GB, free: 25.86 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.812e-05/0.7782, allocations: 3.875 kB / 0.7507 GB, free: 25.86 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.474e-06/0.7782, allocations: 3.953 kB / 0.7507 GB, free: 25.86 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.101e-06/0.7782, allocations: 0 / 0.7507 GB, free: 25.86 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.7782, allocations: 3.422 kB / 0.7507 GB, free: 25.86 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.7782, allocations: 0 / 0.7507 GB, free: 25.86 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.792e-05/0.7783, allocations: 60.89 kB / 0.7508 GB, free: 25.79 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 4.092e-05/0.7783, allocations: 80.67 kB / 0.7509 GB, free: 25.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.162e-05/0.7784, allocations: 3.953 kB / 0.7509 GB, free: 25.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.234e-05/0.7784, allocations: 3.844 kB / 0.7509 GB, free: 25.7 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.632e-05/0.7784, allocations: 0 / 0.7509 GB, free: 25.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.845e-06/0.7784, allocations: 0 / 0.7509 GB, free: 25.7 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 2.912e-05/0.7785, allocations: 75.28 kB / 0.7509 GB, free: 25.62 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7785, allocations: 4.031 kB / 0.751 GB, free: 25.62 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0001717/0.7786, allocations: 3.688 kB / 0.751 GB, free: 25.62 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 (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.0003856/0.779, allocations: 0.5948 MB / 0.7515 GB, free: 25.03 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 6.252e-05/0.7791, allocations: 11.47 kB / 0.7515 GB, free: 25.02 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.7791, allocations: 4.094 kB / 0.7516 GB, free: 25.02 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 8.406e-06/0.7791, allocations: 3.938 kB / 0.7516 GB, free: 25.02 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.291e-05/0.7792, allocations: 9.047 kB / 0.7516 GB, free: 25.01 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002519/0.7795, allocations: 74.2 kB / 0.7516 GB, free: 24.91 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002605/0.7798, allocations: 0.673 MB / 0.7523 GB, free: 24.21 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 3.709e-05/0.7798, allocations: 7.438 kB / 0.7523 GB, free: 24.21 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.548e-05/0.7798, allocations: 7.438 kB / 0.7523 GB, free: 24.2 MB / 0.5105 GB Notification: Performance of SimCode: time 3e-07/0.7798, allocations: 0 / 0.7523 GB, free: 24.2 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01046/0.7903, allocations: 0.7477 MB / 0.753 GB, free: 24.06 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001565/0.7905, allocations: 146.6 kB / 0.7532 GB, free: 23.84 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.44/2.231, allocations: 0 / 0.7532 GB, free: 23.84 MB / 0.5105 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.RegStep.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_RegStep_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_RegStep.fmu > IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1)