Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.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.0008107/0.0008107, allocations: 76.06 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.0007777/0.0007777, allocations: 149.1 kB / 23.93 MB, free: 0.6328 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.9524/0.9524, allocations: 173.4 MB / 200.5 MB, free: 9.418 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.TimeBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.714e-06/1.714e-06, allocations: 0 / 318.4 MB, free: 6.234 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.032e-05/2.203e-05, allocations: 5.516 kB / 318.4 MB, free: 6.23 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep): time 0.001883/0.001905, allocations: 1.43 MB / 319.9 MB, free: 4.785 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002386/0.002143, allocations: 103.6 kB / 320 MB, free: 4.684 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.555e-05/0.002199, allocations: 7.938 kB / 320 MB, free: 4.676 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.841e-05/0.002227, allocations: 3.938 kB / 320 MB, free: 4.672 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 3.08e-05/0.002258, allocations: 0 / 320 MB, free: 4.672 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002246/0.002483, allocations: 31.78 kB / 320 MB, free: 4.641 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 7.835e-05/0.002561, allocations: 27.86 kB / 320 MB, free: 4.613 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.115e-05/0.002652, allocations: 8 kB / 320 MB, free: 4.605 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.05e-05/0.002693, allocations: 11.98 kB / 320.1 MB, free: 4.594 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.686e-05/0.00273, allocations: 7.984 kB / 320.1 MB, free: 4.586 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.284e-05/0.002752, allocations: 4 kB / 320.1 MB, free: 4.582 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.853e-06/0.002759, allocations: 0 / 320.1 MB, free: 4.582 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.039e-05/0.00278, allocations: 19.92 kB / 320.1 MB, free: 4.562 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.095e-05/0.002801, allocations: 0 / 320.1 MB, free: 4.562 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 8.469e-05/0.002885, allocations: 27.91 kB / 320.1 MB, free: 4.535 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.384e-06/0.002888, allocations: 0 / 320.1 MB, free: 4.535 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.002889, allocations: 0 / 320.1 MB, free: 4.535 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.002894, allocations: 0 / 320.1 MB, free: 4.535 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.0003197/0.003214, allocations: 266.3 kB / 320.4 MB, free: 4.242 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.725e-05/0.003251, allocations: 8.922 kB / 320.4 MB, free: 4.234 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.103e-05/0.003282, allocations: 46.69 kB / 320.4 MB, free: 4.18 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.783e-05/0.0033, allocations: 0.9375 kB / 320.4 MB, free: 4.18 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001587/0.003458, allocations: 129.7 kB / 320.6 MB, free: 4.027 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.727e-06/0.003467, allocations: 4.375 kB / 320.6 MB, free: 4.023 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.055e-06/0.003475, allocations: 4.375 kB / 320.6 MB, free: 4.02 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002274/0.003703, allocations: 103.9 kB / 320.7 MB, free: 3.906 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.294e-06/0.00371, allocations: 192 / 320.7 MB, free: 3.906 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.384e-06/0.003717, allocations: 384 / 320.7 MB, free: 3.906 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.003722, allocations: 8.125 kB / 320.7 MB, free: 3.898 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.825e-05/0.00377, allocations: 19.98 kB / 320.7 MB, free: 3.879 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.9e-05/0.003869, allocations: 128.8 kB / 320.8 MB, free: 3.711 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.973e-05/0.003969, allocations: 54.53 kB / 320.9 MB, free: 3.648 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.339e-05/0.004003, allocations: 20.89 kB / 320.9 MB, free: 3.625 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.635e-05/0.004019, allocations: 0 / 320.9 MB, free: 3.625 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.946e-05/0.004038, allocations: 34.55 kB / 320.9 MB, free: 3.582 MB / 282.7 MB Notification: Performance of pre-optimization done (n=4): time 8.12e-07/0.004039, allocations: 0 / 320.9 MB, free: 3.582 MB / 282.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001558/0.004195, allocations: 81.55 kB / 321 MB, free: 3.496 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.706e-05/0.004232, allocations: 59.34 kB / 321.1 MB, free: 3.426 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.73e-05/0.004289, allocations: 105.8 kB / 321.2 MB, free: 3.312 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.105e-05/0.0043, allocations: 29.7 kB / 321.2 MB, free: 3.277 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.864e-05/0.004329, allocations: 80.14 kB / 321.3 MB, free: 3.195 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.725e-06/0.004332, allocations: 0 / 321.3 MB, free: 3.195 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.854e-05/0.00435, allocations: 13.72 kB / 321.3 MB, free: 3.176 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.21e-05/0.004422, allocations: 318.8 kB / 321.6 MB, free: 2.855 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.248e-06/0.004427, allocations: 0 / 321.6 MB, free: 2.855 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.506e-06/0.00443, allocations: 0 / 321.6 MB, free: 2.855 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.799e-05/0.004448, allocations: 87.22 kB / 321.7 MB, free: 2.77 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.65e-05/0.004465, allocations: 75.28 kB / 321.8 MB, free: 2.695 MB / 282.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 3.365e-05/0.004498, allocations: 33.69 kB / 321.8 MB, free: 2.656 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.8e-05/0.004526, allocations: 83.22 kB / 321.9 MB, free: 2.574 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.737e-05/0.004544, allocations: 75.28 kB / 321.9 MB, free: 2.5 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.782e-05/0.004582, allocations: 150.6 kB / 322.1 MB, free: 2.352 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.867e-05/0.0046, allocations: 87.16 kB / 322.2 MB, free: 2.266 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.133e-05/0.004632, allocations: 150.6 kB / 322.3 MB, free: 2.117 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.228e-05/0.004674, allocations: 83.22 kB / 322.4 MB, free: 2.035 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.775e-05/0.004692, allocations: 79.28 kB / 322.5 MB, free: 1.957 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (0): * Single equations (assignments): 0 * 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.534e-05/0.004757, allocations: 189.1 kB / 322.7 MB, free: 1.762 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.445e-05/0.004831, allocations: 61.64 kB / 322.7 MB, free: 1.695 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.25e-05/0.004854, allocations: 4 kB / 322.7 MB, free: 1.684 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.562e-06/0.004855, allocations: 0 / 322.7 MB, free: 1.684 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.004861, allocations: 3.938 kB / 322.7 MB, free: 1.68 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.004864, allocations: 256 / 322.7 MB, free: 1.68 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.154e-05/0.004925, allocations: 124.8 kB / 322.9 MB, free: 1.516 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/0.004929, allocations: 8 kB / 322.9 MB, free: 1.508 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.943e-05/0.004989, allocations: 11.92 kB / 322.9 MB, free: 1.496 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.085e-06/0.004992, allocations: 0 / 322.9 MB, free: 1.496 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.292e-06/0.004998, allocations: 8 kB / 322.9 MB, free: 1.488 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.405e-06/0.005001, allocations: 0 / 322.9 MB, free: 1.488 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.005002, allocations: 3.938 kB / 322.9 MB, free: 1.484 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.685e-05/0.005089, allocations: 81.11 kB / 323 MB, free: 1.387 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.496e-06/0.005098, allocations: 7.953 kB / 323 MB, free: 1.379 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.746e-06/0.005106, allocations: 0 / 323 MB, free: 1.379 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.118e-05/0.005118, allocations: 0 / 323 MB, free: 1.379 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.916e-06/0.005121, allocations: 3.938 kB / 323 MB, free: 1.375 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.701e-06/0.005126, allocations: 4 kB / 323 MB, free: 1.371 MB / 282.7 MB Notification: Performance of sorting global known variables: time 2.834e-05/0.005155, allocations: 87.27 kB / 323.1 MB, free: 1.285 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005155, allocations: 4 kB / 323.1 MB, free: 1.281 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001407/0.005295, allocations: 0 / 323.1 MB, free: 1.281 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: 3 (step.y,assignClock1.u,assignClock1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * 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.0002471/0.005542, allocations: 0.6163 MB / 323.7 MB, free: 0.6367 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 5.856e-05/0.005601, allocations: 15.98 kB / 323.7 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.353e-06/0.005602, allocations: 0 / 323.7 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 4.21e-07/0.005603, allocations: 0 / 323.7 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001807/0.005783, allocations: 31.8 kB / 323.7 MB, free: 0.5898 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007003/0.006484, allocations: 1.372 MB / 325.1 MB, free: 15.14 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.646e-05/0.00652, allocations: 67.34 kB / 325.2 MB, free: 15.05 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 1.201e-05/0.006532, allocations: 3.953 kB / 325.2 MB, free: 15.05 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.574e-05/0.006568, allocations: 12.59 kB / 325.2 MB, free: 15.04 MB / 298.7 MB Notification: Performance of SimCode: time 5.31e-07/0.006569, allocations: 0 / 325.2 MB, free: 15.04 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01488/0.02145, allocations: 1.821 MB / 327 MB, free: 13.34 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.78/6.802, allocations: 19.78 kB / 327 MB, free: 13.32 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep_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_TimeBasedStep.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TimeBasedStep/TimeBasedStep.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.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,step.startTime,assignClock1.u,assignClock1.y,step.y [Calling sys.exit(0), Time elapsed: 8.683422814123333]