Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.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) 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(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep",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.001758/0.001758, allocations: 103.8 kB / 16.92 MB, free: 5.855 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00224/0.00224, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.492/1.492, allocations: 222.9 MB / 241.5 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001006/0.001006, allocations: 50.95 kB / 300.7 MB, free: 5.766 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09214/0.09316, allocations: 49.45 MB / 350.2 MB, free: 4.312 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep): time 0.002595/0.09579, allocations: 1.445 MB / 351.6 MB, free: 2.848 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001676/0.09599, allocations: 27.91 kB / 351.6 MB, free: 2.82 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.454e-05/0.09606, allocations: 8 kB / 351.7 MB, free: 2.812 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.481e-05/0.09611, allocations: 3.938 kB / 351.7 MB, free: 2.809 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 4.144e-05/0.09616, allocations: 3.938 kB / 351.7 MB, free: 2.805 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002206/0.09639, allocations: 21.34 kB / 351.7 MB, free: 2.785 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 7.497e-05/0.09647, allocations: 27.92 kB / 351.7 MB, free: 2.758 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.012e-05/0.09657, allocations: 8 kB / 351.7 MB, free: 2.75 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.452e-05/0.09661, allocations: 15.92 kB / 351.7 MB, free: 2.734 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.068e-05/0.09665, allocations: 15.92 kB / 351.7 MB, free: 2.719 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.482e-05/0.09667, allocations: 0 / 351.7 MB, free: 2.719 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.088e-05/0.09669, allocations: 4 kB / 351.8 MB, free: 2.715 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.099e-05/0.09672, allocations: 15.92 kB / 351.8 MB, free: 2.699 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.443e-05/0.09676, allocations: 11.94 kB / 351.8 MB, free: 2.688 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 7.926e-05/0.09684, allocations: 31.89 kB / 351.8 MB, free: 2.656 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.09685, allocations: 0 / 351.8 MB, free: 2.656 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.09686, allocations: 0 / 351.8 MB, free: 2.656 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.628e-06/0.09687, allocations: 0 / 351.8 MB, free: 2.656 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003803/0.09725, allocations: 347.7 kB / 352.1 MB, free: 2.266 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.567e-05/0.09729, allocations: 8.031 kB / 352.2 MB, free: 2.258 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.941e-05/0.09733, allocations: 34.73 kB / 352.2 MB, free: 2.215 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.537e-05/0.09736, allocations: 12.84 kB / 352.2 MB, free: 2.203 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001533/0.09752, allocations: 180.2 kB / 352.4 MB, free: 1.988 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.702e-05/0.09754, allocations: 4.375 kB / 352.4 MB, free: 1.984 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.123e-05/0.09756, allocations: 384 / 352.4 MB, free: 1.984 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003209/0.09789, allocations: 119.8 kB / 352.5 MB, free: 1.855 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.09791, allocations: 3.938 kB / 352.5 MB, free: 1.852 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.079e-05/0.09792, allocations: 7.984 kB / 352.5 MB, free: 1.844 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.09793, allocations: 4 kB / 352.5 MB, free: 1.84 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001102/0.09805, allocations: 19.98 kB / 352.5 MB, free: 1.82 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001254/0.09818, allocations: 165.5 kB / 352.7 MB, free: 1.609 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000151/0.09834, allocations: 54.55 kB / 352.7 MB, free: 1.547 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.66e-05/0.09842, allocations: 28.92 kB / 352.8 MB, free: 1.516 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.301e-05/0.09844, allocations: 3.984 kB / 352.8 MB, free: 1.512 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.98e-05/0.09847, allocations: 34.56 kB / 352.8 MB, free: 1.469 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 1.032e-06/0.09847, allocations: 4 kB / 352.8 MB, free: 1.465 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002534/0.09873, allocations: 81.53 kB / 352.9 MB, free: 1.379 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.593e-05/0.09878, allocations: 55.41 kB / 353 MB, free: 1.312 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.561e-05/0.09886, allocations: 105.8 kB / 353.1 MB, free: 1.199 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.105e-05/0.09887, allocations: 25.7 kB / 353.1 MB, free: 1.168 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.329e-05/0.09891, allocations: 84.14 kB / 353.2 MB, free: 1.082 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.167e-05/0.09893, allocations: 0 / 353.2 MB, free: 1.082 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.144e-05/0.09896, allocations: 21.7 kB / 353.2 MB, free: 1.055 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 8.518e-05/0.09905, allocations: 318.8 kB / 353.5 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.409e-05/0.09907, allocations: 4 kB / 353.5 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.608e-05/0.0991, allocations: 31.42 kB / 353.5 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.222e-05/0.09915, allocations: 39.38 kB / 353.6 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.09916, allocations: 0 / 353.6 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.355e-05/0.09925, allocations: 61.53 kB / 353.6 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.09927, allocations: 11.94 kB / 353.6 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.09928, allocations: 4.312 kB / 353.6 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.114e-05/0.09929, allocations: 0 / 353.6 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.566e-05/0.09935, allocations: 8 kB / 353.7 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/0.09937, allocations: 4 kB / 353.7 MB, free: 0.543 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.024e-05/0.09939, allocations: 8.125 kB / 353.7 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.597e-06/0.0994, allocations: 3.938 kB / 353.7 MB, free: 0.5312 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 2 ($CLKPRE.step.counter,step.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.156e-05/0.09949, allocations: 113.8 kB / 353.8 MB, free: 420 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001496/0.09964, allocations: 73.55 kB / 353.9 MB, free: 340 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.54e-05/0.09968, allocations: 7.891 kB / 353.9 MB, free: 324 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.09968, allocations: 0 / 353.9 MB, free: 324 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.09969, allocations: 0 / 353.9 MB, free: 324 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-06/0.0997, allocations: 0 / 353.9 MB, free: 324 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.279e-05/0.09979, allocations: 157.6 kB / 354 MB, free: 116 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.09979, allocations: 4 kB / 354 MB, free: 112 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.768e-05/0.09986, allocations: 15.92 kB / 354 MB, free: 96 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5e-06/0.09987, allocations: 7.938 kB / 354 MB, free: 88 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.712e-06/0.09988, allocations: 0 / 354 MB, free: 88 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.09989, allocations: 0 / 354 MB, free: 88 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.09989, allocations: 0 / 354 MB, free: 88 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001771/0.1001, allocations: 89.09 kB / 354.1 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.443e-05/0.1001, allocations: 81.05 kB / 354.2 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.135e-05/0.1001, allocations: 15.94 kB / 354.2 MB, free: 15.87 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.115e-05/0.1002, allocations: 0 / 354.2 MB, free: 15.87 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.398e-06/0.1002, allocations: 0 / 354.2 MB, free: 15.87 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.514e-06/0.1002, allocations: 11.92 kB / 354.2 MB, free: 15.86 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.626e-05/0.1002, allocations: 83.28 kB / 354.3 MB, free: 15.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1002, allocations: 0 / 354.3 MB, free: 15.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001825/0.1004, allocations: 4 kB / 354.3 MB, free: 15.77 MB / 302.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: 1 (step.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0004966/0.1009, allocations: 0.6516 MB / 355 MB, free: 15.09 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001361/0.1011, allocations: 35.92 kB / 355 MB, free: 15.05 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.1011, allocations: 0 / 355 MB, free: 15.05 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.61e-07/0.1011, allocations: 0 / 355 MB, free: 15.05 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003048/0.1014, allocations: 32.05 kB / 355 MB, free: 15.02 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009228/0.1023, allocations: 1.179 MB / 356.2 MB, free: 13.74 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002059/0.1026, allocations: 0.6807 MB / 356.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.024e-05/0.1026, allocations: 4 kB / 356.9 MB, free: 13.03 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.614e-05/0.1026, allocations: 19.42 kB / 356.9 MB, free: 13.01 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1026, allocations: 0 / 356.9 MB, free: 13.01 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01704/0.1197, allocations: 1.345 MB / 358.3 MB, free: 11.76 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.906/8.026, allocations: 3.938 kB / 358.3 MB, free: 11.76 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedStep/TickBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,assignClock1.y Variables in the result:time,assignClock1.u,assignClock1.y,step.y,periodicClock1.period,step.height