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/ModelicaServices 4.0.0+maint.om/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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001213/0.001213, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001261/0.001261, allocations: 192.8 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.336/1.336, allocations: 222.9 MB / 240.2 MB, free: 4.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9131/0.9131, allocations: 135.1 MB / 425.5 MB, free: 11.91 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 60.06 kB / 0.5054 GB, free: 5.188 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1388/0.1401, allocations: 80.94 MB / 0.5845 GB, free: 4.402 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.RegStep): time 0.001566/0.1417, allocations: 0.5507 MB / 0.585 GB, free: 3.844 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.000211/0.1419, allocations: 55.72 kB / 0.5851 GB, free: 3.789 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.532e-05/0.1419, allocations: 0 / 0.5851 GB, free: 3.789 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.015e-05/0.142, allocations: 4 kB / 0.5851 GB, free: 3.785 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.147e-06/0.142, allocations: 0 / 0.5851 GB, free: 3.785 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001978/0.1422, allocations: 15.92 kB / 0.5851 GB, free: 3.77 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.359e-05/0.1422, allocations: 4 kB / 0.5851 GB, free: 3.766 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.826e-05/0.1423, allocations: 4 kB / 0.5851 GB, free: 3.762 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.136e-05/0.1423, allocations: 0 / 0.5851 GB, free: 3.762 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.914e-05/0.1423, allocations: 4 kB / 0.5851 GB, free: 3.758 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.305e-06/0.1423, allocations: 0 / 0.5851 GB, free: 3.758 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.708e-05/0.1424, allocations: 15.98 kB / 0.5851 GB, free: 3.742 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.815e-06/0.1424, allocations: 0 / 0.5851 GB, free: 3.742 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.657e-05/0.1424, allocations: 15.92 kB / 0.5851 GB, free: 3.727 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 7.241e-05/0.1425, allocations: 19.97 kB / 0.5852 GB, free: 3.707 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.1425, allocations: 0 / 0.5852 GB, free: 3.707 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1425, allocations: 0 / 0.5852 GB, free: 3.707 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.248e-06/0.1425, allocations: 0 / 0.5852 GB, free: 3.707 MB / 494.1 MB 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.0002282/0.1428, allocations: 307.6 kB / 0.5855 GB, free: 3.355 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.1428, allocations: 12.03 kB / 0.5855 GB, free: 3.344 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.517e-05/0.1428, allocations: 30.75 kB / 0.5855 GB, free: 3.305 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002402/0.1431, allocations: 24.89 kB / 0.5855 GB, free: 3.281 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.545e-05/0.1432, allocations: 164.3 kB / 0.5857 GB, free: 3.082 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.716e-06/0.1432, allocations: 384 / 0.5857 GB, free: 3.082 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.185e-06/0.1432, allocations: 4.359 kB / 0.5857 GB, free: 3.078 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001206/0.1433, allocations: 38.25 kB / 0.5857 GB, free: 3.035 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.1433, allocations: 3.938 kB / 0.5857 GB, free: 3.031 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.973e-06/0.1434, allocations: 4 kB / 0.5857 GB, free: 3.027 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.1434, allocations: 0 / 0.5857 GB, free: 3.027 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.154e-05/0.1435, allocations: 11.98 kB / 0.5857 GB, free: 3.016 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001221/0.1436, allocations: 149.7 kB / 0.5859 GB, free: 2.82 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.086e-05/0.1437, allocations: 22.55 kB / 0.5859 GB, free: 2.789 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.591e-05/0.1437, allocations: 16.91 kB / 0.5859 GB, free: 2.77 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.471e-05/0.1438, allocations: 0 / 0.5859 GB, free: 2.77 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.066e-05/0.1438, allocations: 34.56 kB / 0.586 GB, free: 2.727 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.1438, allocations: 4 kB / 0.586 GB, free: 2.723 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002166/0.144, allocations: 41.62 kB / 0.586 GB, free: 2.676 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.135e-05/0.144, allocations: 59.39 kB / 0.5861 GB, free: 2.605 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.289e-05/0.1441, allocations: 89.86 kB / 0.5861 GB, free: 2.508 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.09e-05/0.1441, allocations: 29.64 kB / 0.5862 GB, free: 2.473 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.375e-05/0.1441, allocations: 80.14 kB / 0.5862 GB, free: 2.391 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.275e-05/0.1442, allocations: 7.844 kB / 0.5863 GB, free: 2.383 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.83e-05/0.1442, allocations: 21.78 kB / 0.5863 GB, free: 2.355 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.976e-05/0.1443, allocations: 314.8 kB / 0.5866 GB, free: 2.039 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.88e-05/0.1443, allocations: 3.984 kB / 0.5866 GB, free: 2.035 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.993e-05/0.1444, allocations: 4 kB / 0.5866 GB, free: 2.031 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.169e-05/0.1445, allocations: 16.84 kB / 0.5866 GB, free: 2.012 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.1445, allocations: 64 / 0.5866 GB, free: 2.012 MB / 494.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001211/0.1446, allocations: 45.69 kB / 0.5866 GB, free: 1.961 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.1446, allocations: 8 kB / 0.5866 GB, free: 1.953 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.83e-06/0.1447, allocations: 3.938 kB / 0.5867 GB, free: 1.949 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.768e-06/0.1447, allocations: 0 / 0.5867 GB, free: 1.949 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.333e-05/0.1447, allocations: 7.922 kB / 0.5867 GB, free: 1.941 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.219e-06/0.1448, allocations: 7.984 kB / 0.5867 GB, free: 1.934 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.307e-05/0.1448, allocations: 0 / 0.5867 GB, free: 1.934 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5e-06/0.1448, allocations: 0 / 0.5867 GB, free: 1.934 MB / 494.1 MB 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.791e-05/0.1449, allocations: 109.9 kB / 0.5868 GB, free: 1.816 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.835e-06/0.1449, allocations: 4 kB / 0.5868 GB, free: 1.812 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.559e-05/0.1449, allocations: 11.05 kB / 0.5868 GB, free: 1.801 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-06/0.1449, allocations: 0 / 0.5868 GB, free: 1.801 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.915e-06/0.1449, allocations: 0 / 0.5868 GB, free: 1.801 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.913e-06/0.1449, allocations: 0 / 0.5868 GB, free: 1.801 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.408e-05/0.145, allocations: 141.7 kB / 0.5869 GB, free: 1.613 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.145, allocations: 0 / 0.5869 GB, free: 1.613 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.339e-05/0.1451, allocations: 7.984 kB / 0.5869 GB, free: 1.605 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.1451, allocations: 4 kB / 0.5869 GB, free: 1.602 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.064e-06/0.1451, allocations: 3.938 kB / 0.5869 GB, free: 1.598 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.1451, allocations: 4 kB / 0.5869 GB, free: 1.594 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.1451, allocations: 0 / 0.5869 GB, free: 1.594 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000138/0.1452, allocations: 65.06 kB / 0.587 GB, free: 1.512 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.838e-05/0.1453, allocations: 81.38 kB / 0.5871 GB, free: 1.414 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.294e-05/0.1453, allocations: 11.97 kB / 0.5871 GB, free: 1.402 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.224e-05/0.1453, allocations: 0 / 0.5871 GB, free: 1.402 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.025e-06/0.1453, allocations: 0 / 0.5871 GB, free: 1.402 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.925e-06/0.1454, allocations: 0 / 0.5871 GB, free: 1.402 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.588e-05/0.1454, allocations: 75.28 kB / 0.5872 GB, free: 1.328 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.275e-06/0.1454, allocations: 0 / 0.5872 GB, free: 1.328 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001823/0.1456, allocations: 7.938 kB / 0.5872 GB, free: 1.32 MB / 494.1 MB 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003621/0.1459, allocations: 0.6007 MB / 0.5878 GB, free: 0.6875 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001329/0.1461, allocations: 19.92 kB / 0.5878 GB, free: 0.668 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.482e-06/0.1461, allocations: 0 / 0.5878 GB, free: 0.668 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 4.567e-05/0.1461, allocations: 11.98 kB / 0.5878 GB, free: 0.6562 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001311/0.1463, allocations: 12.03 kB / 0.5878 GB, free: 0.6445 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003004/0.1466, allocations: 114.6 kB / 0.5879 GB, free: 0.4922 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001923/0.1468, allocations: 0.669 MB / 0.5886 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.608e-05/0.1468, allocations: 7.984 kB / 0.5886 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.484e-05/0.1469, allocations: 15.44 kB / 0.5886 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of SimCode: time 2.31e-07/0.1469, allocations: 0 / 0.5886 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0159/0.1628, allocations: 0.914 MB / 0.5895 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.223/7.386, allocations: 9.906 kB / 0.5895 GB, free: 14.93 MB / 0.4981 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 & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.RegStep_res.csv --start-time -1 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_RegStep.fmu > IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1)