Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001286/0.001286, allocations: 113.2 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001501/0.001501, allocations: 213.8 kB / 23.74 MB, free: 4.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.429/1.429, allocations: 230.6 MB / 257.5 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001513/0.001513, allocations: 51.92 kB / 377.8 MB, free: 3.141 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2585/0.26, allocations: 53.37 MB / 431.1 MB, free: 6.859 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep): time 0.002759/0.2628, allocations: 1.448 MB / 432.6 MB, free: 5.406 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001954/0.263, allocations: 35.84 kB / 432.6 MB, free: 5.371 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.553e-05/0.263, allocations: 0 / 432.6 MB, free: 5.371 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.861e-05/0.263, allocations: 3.938 kB / 432.6 MB, free: 5.367 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 3.034e-05/0.2631, allocations: 3.938 kB / 432.6 MB, free: 5.363 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002351/0.2633, allocations: 27.09 kB / 432.7 MB, free: 5.34 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.241e-05/0.2634, allocations: 27.92 kB / 432.7 MB, free: 5.312 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.52e-05/0.2635, allocations: 4 kB / 432.7 MB, free: 5.309 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.996e-05/0.2635, allocations: 15.92 kB / 432.7 MB, free: 5.293 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.003e-05/0.2636, allocations: 11.94 kB / 432.7 MB, free: 5.281 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.129e-05/0.2636, allocations: 8 kB / 432.7 MB, free: 5.273 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.354e-06/0.2636, allocations: 0 / 432.7 MB, free: 5.273 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.278e-05/0.2636, allocations: 19.91 kB / 432.7 MB, free: 5.254 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.153e-05/0.2637, allocations: 7.938 kB / 432.7 MB, free: 5.246 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001075/0.2638, allocations: 32.83 kB / 432.8 MB, free: 5.215 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.2638, allocations: 0 / 432.8 MB, free: 5.215 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2638, allocations: 0 / 432.8 MB, free: 5.215 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.914e-06/0.2638, allocations: 0 / 432.8 MB, free: 5.215 MB / 334.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.0004127/0.2642, allocations: 265.7 kB / 433 MB, free: 4.926 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.2642, allocations: 12.03 kB / 433.1 MB, free: 4.914 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.484e-05/0.2643, allocations: 38.75 kB / 433.1 MB, free: 4.867 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.444e-05/0.2643, allocations: 8.891 kB / 433.1 MB, free: 4.859 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002013/0.2645, allocations: 130.3 kB / 433.2 MB, free: 4.707 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.842e-05/0.2645, allocations: 384 / 433.2 MB, free: 4.707 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.946e-05/0.2645, allocations: 8.375 kB / 433.2 MB, free: 4.699 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003219/0.2649, allocations: 119.8 kB / 433.3 MB, free: 4.57 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.958e-06/0.2649, allocations: 7.938 kB / 433.4 MB, free: 4.562 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.464e-06/0.2649, allocations: 0 / 433.4 MB, free: 4.562 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.2649, allocations: 0 / 433.4 MB, free: 4.562 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001138/0.265, allocations: 27.97 kB / 433.4 MB, free: 4.535 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001382/0.2651, allocations: 124.8 kB / 433.5 MB, free: 4.371 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001617/0.2653, allocations: 54.48 kB / 433.6 MB, free: 4.309 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.221e-05/0.2654, allocations: 24.92 kB / 433.6 MB, free: 4.281 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.218e-05/0.2654, allocations: 8 kB / 433.6 MB, free: 4.273 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.041e-05/0.2654, allocations: 34.55 kB / 433.6 MB, free: 4.23 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 8.71e-07/0.2654, allocations: 0 / 433.6 MB, free: 4.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002714/0.2657, allocations: 85.55 kB / 433.7 MB, free: 4.141 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.753e-05/0.2657, allocations: 59.53 kB / 433.8 MB, free: 4.07 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.64e-05/0.2658, allocations: 105.8 kB / 433.9 MB, free: 3.957 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.685e-05/0.2659, allocations: 25.7 kB / 433.9 MB, free: 3.926 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.458e-05/0.2659, allocations: 84.14 kB / 434 MB, free: 3.84 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.225e-05/0.2659, allocations: 8 kB / 434 MB, free: 3.832 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.87e-05/0.2659, allocations: 13.72 kB / 434 MB, free: 3.812 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.2661, allocations: 318.8 kB / 434.3 MB, free: 3.492 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.334e-05/0.2661, allocations: 4 kB / 434.3 MB, free: 3.488 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.072e-05/0.2661, allocations: 27.44 kB / 434.3 MB, free: 3.449 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.914e-05/0.2662, allocations: 39.38 kB / 434.4 MB, free: 3.398 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.2662, allocations: 0 / 434.4 MB, free: 3.398 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.373e-05/0.2663, allocations: 69.56 kB / 434.4 MB, free: 3.324 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.2663, allocations: 7.938 kB / 434.5 MB, free: 3.316 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.2663, allocations: 4 kB / 434.5 MB, free: 3.312 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.152e-05/0.2663, allocations: 128 / 434.5 MB, free: 3.312 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.843e-05/0.2664, allocations: 19.92 kB / 434.5 MB, free: 3.293 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.999e-06/0.2664, allocations: 0 / 434.5 MB, free: 3.293 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.76e-05/0.2664, allocations: 7.938 kB / 434.5 MB, free: 3.285 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.966e-06/0.2664, allocations: 0 / 434.5 MB, free: 3.285 MB / 334.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: 5 ($CLKPRE.step.counter,step.counter,step.y,assignClock1.y,assignClock1.u) * 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.019e-05/0.2665, allocations: 117.8 kB / 434.6 MB, free: 3.16 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001462/0.2666, allocations: 65.56 kB / 434.7 MB, free: 3.09 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.479e-05/0.2667, allocations: 12 kB / 434.7 MB, free: 3.07 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.243e-06/0.2667, allocations: 0 / 434.7 MB, free: 3.07 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.2667, allocations: 4 kB / 434.7 MB, free: 3.066 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.2667, allocations: 3.984 kB / 434.7 MB, free: 3.062 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001021/0.2668, allocations: 124.8 kB / 434.8 MB, free: 2.898 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/0.2668, allocations: 0 / 434.8 MB, free: 2.898 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.092e-05/0.2668, allocations: 16.3 kB / 434.8 MB, free: 2.883 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.2668, allocations: 3.938 kB / 434.8 MB, free: 2.879 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.358e-06/0.2668, allocations: 8 kB / 434.8 MB, free: 2.871 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.2668, allocations: 0 / 434.8 MB, free: 2.871 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.2668, allocations: 0 / 434.8 MB, free: 2.871 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00018/0.267, allocations: 89.11 kB / 434.9 MB, free: 2.766 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.039e-05/0.267, allocations: 7.938 kB / 434.9 MB, free: 2.758 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.69e-05/0.2671, allocations: 7.938 kB / 434.9 MB, free: 2.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.119e-05/0.2671, allocations: 4 kB / 434.9 MB, free: 2.746 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.104e-06/0.2671, allocations: 0 / 434.9 MB, free: 2.746 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.861e-06/0.2671, allocations: 4 kB / 434.9 MB, free: 2.742 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.749e-05/0.2671, allocations: 83.27 kB / 435 MB, free: 2.66 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2671, allocations: 0 / 435 MB, free: 2.66 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001868/0.2673, allocations: 8 kB / 435 MB, free: 2.652 MB / 334.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: 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.0005881/0.2679, allocations: 0.6475 MB / 435.7 MB, free: 1.977 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001272/0.268, allocations: 31.91 kB / 435.7 MB, free: 1.945 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.268, allocations: 4 kB / 435.7 MB, free: 1.941 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.2e-07/0.268, allocations: 0 / 435.7 MB, free: 1.941 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000271/0.2683, allocations: 28.3 kB / 435.7 MB, free: 1.914 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001064/0.2694, allocations: 1.181 MB / 436.9 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003249/0.2697, allocations: 0.6807 MB / 437.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.734e-05/0.2697, allocations: 4 kB / 437.6 MB, free: 15.92 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.535e-05/0.2698, allocations: 15.42 kB / 437.6 MB, free: 15.91 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2698, allocations: 0 / 437.6 MB, free: 15.91 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02637/0.2961, allocations: 1.491 MB / 439.1 MB, free: 14.55 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.93/11.22, allocations: 0 / 439.1 MB, free: 14.55 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TickBasedStep/TickBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 13.750664557999698]