Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001255/0.001255, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001205/0.001205, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9454/0.9454, allocations: 173.4 MB / 200.4 MB, free: 9.43 MB / 186.7 MB " [Timeout remaining time 179] 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.IntegerSignals.TickBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 318.4 MB, free: 6.383 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.239e-05/2.394e-05, allocations: 5.516 kB / 318.4 MB, free: 6.379 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep): time 0.001891/0.001915, allocations: 1.422 MB / 319.8 MB, free: 4.941 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001893/0.002104, allocations: 31.84 kB / 319.9 MB, free: 4.91 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.854e-05/0.002162, allocations: 7.875 kB / 319.9 MB, free: 4.902 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.772e-05/0.00219, allocations: 3.938 kB / 319.9 MB, free: 4.898 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 3.285e-05/0.002223, allocations: 0 / 319.9 MB, free: 4.898 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000234/0.002457, allocations: 31.84 kB / 319.9 MB, free: 4.867 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 8.17e-05/0.002539, allocations: 27.92 kB / 319.9 MB, free: 4.84 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.188e-05/0.002631, allocations: 8 kB / 320 MB, free: 4.832 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.943e-05/0.00268, allocations: 19.91 kB / 320 MB, free: 4.812 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.743e-05/0.002717, allocations: 15.98 kB / 320 MB, free: 4.797 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.483e-05/0.002742, allocations: 4 kB / 320 MB, free: 4.793 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.194e-06/0.002749, allocations: 0 / 320 MB, free: 4.793 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.099e-05/0.00277, allocations: 4 kB / 320 MB, free: 4.789 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.498e-05/0.002795, allocations: 11.94 kB / 320 MB, free: 4.777 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 9.113e-05/0.002887, allocations: 31.88 kB / 320 MB, free: 4.746 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.00289, allocations: 4 kB / 320 MB, free: 4.742 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.002891, allocations: 0 / 320 MB, free: 4.742 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.508e-06/0.002896, allocations: 0 / 320 MB, free: 4.742 MB / 282.7 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.0003321/0.003228, allocations: 273.5 kB / 320.3 MB, free: 4.445 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/0.003268, allocations: 12.86 kB / 320.3 MB, free: 4.434 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.975e-05/0.003298, allocations: 38.75 kB / 320.4 MB, free: 4.387 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.279e-05/0.003321, allocations: 4.938 kB / 320.4 MB, free: 4.383 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001708/0.003492, allocations: 121.7 kB / 320.5 MB, free: 4.238 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.823e-05/0.00351, allocations: 4.375 kB / 320.5 MB, free: 4.234 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.745e-06/0.003518, allocations: 384 / 320.5 MB, free: 4.234 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000253/0.003771, allocations: 123.8 kB / 320.6 MB, free: 4.102 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.615e-06/0.003778, allocations: 192 / 320.6 MB, free: 4.102 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.637e-06/0.003787, allocations: 4.375 kB / 320.6 MB, free: 4.098 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.254e-06/0.003794, allocations: 8.125 kB / 320.6 MB, free: 4.09 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.64e-05/0.00386, allocations: 23.97 kB / 320.6 MB, free: 4.066 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.893e-05/0.003959, allocations: 124.8 kB / 320.8 MB, free: 3.902 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001045/0.004064, allocations: 58.48 kB / 320.8 MB, free: 3.836 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.15e-05/0.004115, allocations: 24.92 kB / 320.9 MB, free: 3.809 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.235e-06/0.004124, allocations: 0 / 320.9 MB, free: 3.809 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.795e-05/0.004142, allocations: 34.56 kB / 320.9 MB, free: 3.766 MB / 282.7 MB Notification: Performance of pre-optimization done (n=4): time 8.42e-07/0.004142, allocations: 0 / 320.9 MB, free: 3.766 MB / 282.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001843/0.004327, allocations: 77.8 kB / 321 MB, free: 3.684 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.394e-05/0.004371, allocations: 59.34 kB / 321 MB, free: 3.613 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.041e-05/0.004431, allocations: 117.8 kB / 321.1 MB, free: 3.488 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.678e-06/0.004441, allocations: 25.7 kB / 321.2 MB, free: 3.457 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.903e-05/0.00447, allocations: 80.14 kB / 321.2 MB, free: 3.375 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.046e-05/0.00448, allocations: 4 kB / 321.2 MB, free: 3.371 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.388e-05/0.004504, allocations: 13.72 kB / 321.3 MB, free: 3.352 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.879e-05/0.004583, allocations: 322.8 kB / 321.6 MB, free: 3.027 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.957e-06/0.004592, allocations: 0 / 321.6 MB, free: 3.027 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.845e-06/0.0046, allocations: 8 kB / 321.6 MB, free: 3.02 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.276e-05/0.004622, allocations: 8.859 kB / 321.6 MB, free: 3.008 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.004625, allocations: 4.062 kB / 321.6 MB, free: 3.004 MB / 282.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.065e-05/0.004675, allocations: 45.64 kB / 321.6 MB, free: 2.953 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/0.00469, allocations: 7.938 kB / 321.6 MB, free: 2.945 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.728e-06/0.004694, allocations: 0 / 321.6 MB, free: 2.945 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.252e-05/0.004707, allocations: 3.938 kB / 321.6 MB, free: 2.941 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.704e-05/0.004764, allocations: 11.92 kB / 321.7 MB, free: 2.93 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.169e-06/0.004769, allocations: 0 / 321.7 MB, free: 2.93 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.977e-06/0.004778, allocations: 0 / 321.7 MB, free: 2.93 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.899e-06/0.004783, allocations: 4 kB / 321.7 MB, free: 2.926 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (2): * Single equations (assignments): 2 * 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 6.04e-05/0.004843, allocations: 105.8 kB / 321.8 MB, free: 2.812 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.408e-05/0.004927, allocations: 69.7 kB / 321.8 MB, free: 2.738 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.18e-05/0.004949, allocations: 4 kB / 321.8 MB, free: 2.727 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-06/0.004951, allocations: 256 / 321.8 MB, free: 2.727 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.74e-06/0.004957, allocations: 3.938 kB / 321.8 MB, free: 2.723 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.004961, allocations: 4 kB / 321.8 MB, free: 2.719 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.924e-05/0.005031, allocations: 128.8 kB / 322 MB, free: 2.551 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.005032, allocations: 4 kB / 322 MB, free: 2.547 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.427e-05/0.005066, allocations: 11.98 kB / 322 MB, free: 2.535 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.005068, allocations: 0 / 322 MB, free: 2.535 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.213e-06/0.005075, allocations: 4 kB / 322 MB, free: 2.531 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.005076, allocations: 3.938 kB / 322 MB, free: 2.527 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/0.00508, allocations: 7.938 kB / 322 MB, free: 2.52 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001053/0.005185, allocations: 89.05 kB / 322.1 MB, free: 2.414 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.297e-06/0.005194, allocations: 4 kB / 322.1 MB, free: 2.41 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.314e-05/0.005207, allocations: 4 kB / 322.1 MB, free: 2.406 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.419e-05/0.005222, allocations: 4 kB / 322.1 MB, free: 2.402 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.586e-06/0.005225, allocations: 3.938 kB / 322.1 MB, free: 2.398 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.937e-06/0.005229, allocations: 0 / 322.1 MB, free: 2.398 MB / 282.7 MB Notification: Performance of sorting global known variables: time 3.177e-05/0.005261, allocations: 91.27 kB / 322.2 MB, free: 2.309 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005261, allocations: 0 / 322.2 MB, free: 2.309 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001199/0.005381, allocations: 0 / 322.2 MB, free: 2.309 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (assignClock1.u,assignClock1.y,step.y,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.0003446/0.005725, allocations: 0.6514 MB / 322.8 MB, free: 1.629 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 9.148e-05/0.005817, allocations: 19.98 kB / 322.9 MB, free: 1.609 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.302e-06/0.005818, allocations: 0 / 322.9 MB, free: 1.609 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 4.9e-07/0.005819, allocations: 3.938 kB / 322.9 MB, free: 1.605 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002179/0.006037, allocations: 35.88 kB / 322.9 MB, free: 1.57 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006393/0.006676, allocations: 1.114 MB / 324 MB, free: 380 kB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.82e-05/0.006714, allocations: 63.34 kB / 324.1 MB, free: 296 kB / 282.7 MB Notification: Performance of simCode: alias equations: time 2.161e-05/0.006736, allocations: 4.156 kB / 324.1 MB, free: 292 kB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.601e-05/0.006772, allocations: 16.48 kB / 324.1 MB, free: 276 kB / 282.7 MB Notification: Performance of SimCode: time 6.41e-07/0.006772, allocations: 0 / 324.1 MB, free: 276 kB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01658/0.02335, allocations: 1.993 MB / 326.1 MB, free: 14.41 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.861/6.884, allocations: 10.72 kB / 326.1 MB, free: 14.4 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000199561 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TickBasedStep/TickBasedStep.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,assignClock1.y Variables in the result:time,periodicClock1.period,previous(step.counter),assignClock1.u,assignClock1.y,step.counter [Calling sys.exit(0), Time elapsed: 8.748888548463583]