Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.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.001866/0.001866, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002397/0.002397, allocations: 210.9 kB / 23.73 MB, free: 4.387 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.415/1.415, allocations: 230.6 MB / 257.5 MB, free: 7.781 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.TimeBasedStep,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00163/0.00163, allocations: 47.92 kB / 377.7 MB, free: 2.953 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2532/0.2548, allocations: 53.35 MB / 431.1 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep): time 0.003068/0.2579, allocations: 1.46 MB / 432.5 MB, free: 5.176 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003591/0.2583, allocations: 95.67 kB / 432.6 MB, free: 5.082 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.247e-05/0.2583, allocations: 0 / 432.6 MB, free: 5.082 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.443e-05/0.2584, allocations: 3.938 kB / 432.6 MB, free: 5.078 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.433e-05/0.2584, allocations: 7.938 kB / 432.6 MB, free: 5.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002764/0.2587, allocations: 30.97 kB / 432.7 MB, free: 5.043 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.451e-05/0.2588, allocations: 23.92 kB / 432.7 MB, free: 5.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.737e-05/0.2589, allocations: 4 kB / 432.7 MB, free: 5.016 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.603e-05/0.2589, allocations: 11.94 kB / 432.7 MB, free: 5.004 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.237e-05/0.259, allocations: 11.92 kB / 432.7 MB, free: 4.992 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.632e-05/0.259, allocations: 0 / 432.7 MB, free: 4.992 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.091e-05/0.259, allocations: 4 kB / 432.7 MB, free: 4.988 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.129e-05/0.259, allocations: 15.86 kB / 432.7 MB, free: 4.973 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.42e-05/0.2591, allocations: 11.94 kB / 432.7 MB, free: 4.961 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 9.963e-05/0.2592, allocations: 29.53 kB / 432.8 MB, free: 4.934 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.2592, allocations: 4 kB / 432.8 MB, free: 4.93 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2592, allocations: 0 / 432.8 MB, free: 4.93 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.2592, allocations: 0 / 432.8 MB, free: 4.93 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.0004115/0.2596, allocations: 268.7 kB / 433 MB, free: 4.637 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/0.2596, allocations: 12.03 kB / 433 MB, free: 4.625 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.82e-05/0.2597, allocations: 34.75 kB / 433.1 MB, free: 4.582 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.978e-05/0.2597, allocations: 8.891 kB / 433.1 MB, free: 4.574 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002471/0.2599, allocations: 114.5 kB / 433.2 MB, free: 4.438 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.282e-05/0.26, allocations: 8.375 kB / 433.2 MB, free: 4.43 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.404e-06/0.26, allocations: 384 / 433.2 MB, free: 4.43 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003091/0.2603, allocations: 115.8 kB / 433.3 MB, free: 4.305 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.2603, allocations: 7.875 kB / 433.3 MB, free: 4.297 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.167e-06/0.2603, allocations: 4 kB / 433.3 MB, free: 4.293 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.2603, allocations: 4 kB / 433.3 MB, free: 4.289 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.423e-05/0.2604, allocations: 11.98 kB / 433.4 MB, free: 4.277 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001449/0.2605, allocations: 128.7 kB / 433.5 MB, free: 4.109 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001562/0.2607, allocations: 58.58 kB / 433.5 MB, free: 4.043 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.592e-05/0.2607, allocations: 20.89 kB / 433.6 MB, free: 4.02 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.388e-05/0.2607, allocations: 0 / 433.6 MB, free: 4.02 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.131e-05/0.2608, allocations: 34.56 kB / 433.6 MB, free: 3.977 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 8.42e-07/0.2608, allocations: 3.938 kB / 433.6 MB, free: 3.973 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002189/0.261, allocations: 73.59 kB / 433.7 MB, free: 3.895 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.195e-05/0.261, allocations: 55.41 kB / 433.7 MB, free: 3.828 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.09e-05/0.2611, allocations: 101.9 kB / 433.8 MB, free: 3.719 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.948e-05/0.2611, allocations: 37.69 kB / 433.9 MB, free: 3.676 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.049e-05/0.2612, allocations: 80.14 kB / 433.9 MB, free: 3.594 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.094e-06/0.2612, allocations: 4 kB / 433.9 MB, free: 3.59 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.062e-05/0.2612, allocations: 13.72 kB / 433.9 MB, free: 3.57 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.2614, allocations: 314.8 kB / 434.3 MB, free: 3.254 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.116e-05/0.2614, allocations: 7.984 kB / 434.3 MB, free: 3.246 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.21e-05/0.2614, allocations: 31.38 kB / 434.3 MB, free: 3.203 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.262e-05/0.2614, allocations: 31.44 kB / 434.3 MB, free: 3.16 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.2614, allocations: 0 / 434.3 MB, free: 3.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.597e-05/0.2615, allocations: 65.77 kB / 434.4 MB, free: 3.09 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/0.2615, allocations: 11.94 kB / 434.4 MB, free: 3.078 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.2615, allocations: 3.938 kB / 434.4 MB, free: 3.074 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.436e-05/0.2616, allocations: 4 kB / 434.4 MB, free: 3.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.091e-05/0.2616, allocations: 8 kB / 434.4 MB, free: 3.062 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.864e-06/0.2616, allocations: 7.922 kB / 434.4 MB, free: 3.055 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.847e-05/0.2616, allocations: 0 / 434.4 MB, free: 3.055 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.843e-06/0.2616, allocations: 8.125 kB / 434.4 MB, free: 3.047 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: 3 (assignClock1.y,assignClock1.u,step.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 0.0001029/0.2618, allocations: 113.8 kB / 434.5 MB, free: 2.926 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000116/0.2619, allocations: 61.56 kB / 434.6 MB, free: 2.859 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.903e-05/0.2619, allocations: 4 kB / 434.6 MB, free: 2.848 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.2619, allocations: 4 kB / 434.6 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.734e-06/0.2619, allocations: 3.984 kB / 434.6 MB, free: 2.84 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.404e-06/0.2619, allocations: 0 / 434.6 MB, free: 2.84 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001057/0.262, allocations: 120.8 kB / 434.7 MB, free: 2.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.262, allocations: 0 / 434.7 MB, free: 2.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.837e-05/0.2621, allocations: 15.98 kB / 434.7 MB, free: 2.664 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.589e-06/0.2621, allocations: 3.938 kB / 434.8 MB, free: 2.66 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.586e-06/0.2621, allocations: 4 kB / 434.8 MB, free: 2.656 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.2621, allocations: 0 / 434.8 MB, free: 2.656 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.2621, allocations: 0 / 434.8 MB, free: 2.656 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001523/0.2622, allocations: 89 kB / 434.8 MB, free: 2.551 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.081e-05/0.2623, allocations: 8.312 kB / 434.9 MB, free: 2.543 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.383e-05/0.2623, allocations: 3.938 kB / 434.9 MB, free: 2.539 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.74e-05/0.2623, allocations: 4 kB / 434.9 MB, free: 2.535 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.915e-06/0.2623, allocations: 0 / 434.9 MB, free: 2.535 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.442e-06/0.2623, allocations: 7.984 kB / 434.9 MB, free: 2.527 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.506e-05/0.2624, allocations: 83.28 kB / 434.9 MB, free: 2.445 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2624, allocations: 0 / 434.9 MB, free: 2.445 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001837/0.2625, allocations: 4 kB / 435 MB, free: 2.441 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: 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.0004748/0.263, allocations: 0.628 MB / 435.6 MB, free: 1.785 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001111/0.2631, allocations: 23.92 kB / 435.6 MB, free: 1.762 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.2631, allocations: 0 / 435.6 MB, free: 1.762 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.41e-07/0.2631, allocations: 256 / 435.6 MB, free: 1.762 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002275/0.2634, allocations: 31.86 kB / 435.6 MB, free: 1.73 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001043/0.2644, allocations: 1.154 MB / 436.8 MB, free: 488 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.649e-05/0.2645, allocations: 63.34 kB / 436.9 MB, free: 404 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.791e-05/0.2645, allocations: 4 kB / 436.9 MB, free: 400 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.94e-05/0.2645, allocations: 11.44 kB / 436.9 MB, free: 388 kB / 334.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2645, allocations: 0 / 436.9 MB, free: 388 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02715/0.2917, allocations: 1.743 MB / 438.6 MB, free: 14.77 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.47, allocations: 0 / 438.6 MB, free: 14.77 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TimeBasedStep/TimeBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 13.950177860911936]