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.001776/0.001776, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001892/0.001892, allocations: 209 kB / 23.73 MB, free: 4.523 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.414/1.414, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.001578/0.001578, allocations: 47.92 kB / 377.7 MB, free: 2.977 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2708/0.2723, allocations: 53.37 MB / 431.1 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep): time 0.002646/0.275, allocations: 1.455 MB / 432.5 MB, free: 5.203 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001856/0.2752, allocations: 23.94 kB / 432.6 MB, free: 5.18 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.092e-05/0.2752, allocations: 3.938 kB / 432.6 MB, free: 5.176 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.914e-05/0.2753, allocations: 7.984 kB / 432.6 MB, free: 5.168 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 3.337e-05/0.2753, allocations: 3.938 kB / 432.6 MB, free: 5.164 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002373/0.2755, allocations: 23.97 kB / 432.6 MB, free: 5.141 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.802e-05/0.2756, allocations: 31.86 kB / 432.6 MB, free: 5.109 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001054/0.2757, allocations: 11.98 kB / 432.6 MB, free: 5.098 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.487e-05/0.2758, allocations: 4 kB / 432.6 MB, free: 5.094 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.091e-05/0.2758, allocations: 15.92 kB / 432.7 MB, free: 5.078 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.977e-05/0.2758, allocations: 4 kB / 432.7 MB, free: 5.074 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.536e-06/0.2758, allocations: 0 / 432.7 MB, free: 5.074 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.047e-05/0.2758, allocations: 11.94 kB / 432.7 MB, free: 5.062 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.114e-05/0.2759, allocations: 15.92 kB / 432.7 MB, free: 5.047 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 9.451e-05/0.276, allocations: 33.52 kB / 432.7 MB, free: 5.016 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.201e-05/0.276, allocations: 4 kB / 432.7 MB, free: 5.012 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.276, allocations: 0 / 432.7 MB, free: 5.012 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.276, allocations: 0 / 432.7 MB, free: 5.012 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.0004184/0.2764, allocations: 269 kB / 433 MB, free: 4.719 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.2765, allocations: 12.03 kB / 433 MB, free: 4.707 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.753e-05/0.2765, allocations: 34.75 kB / 433 MB, free: 4.664 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.485e-05/0.2765, allocations: 8.891 kB / 433 MB, free: 4.656 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001963/0.2767, allocations: 118.4 kB / 433.2 MB, free: 4.516 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.89e-05/0.2767, allocations: 8.375 kB / 433.2 MB, free: 4.508 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.333e-05/0.2767, allocations: 4.375 kB / 433.2 MB, free: 4.504 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003466/0.2771, allocations: 119.8 kB / 433.3 MB, free: 4.375 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/0.2771, allocations: 7.875 kB / 433.3 MB, free: 4.367 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.853e-06/0.2771, allocations: 0 / 433.3 MB, free: 4.367 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.997e-06/0.2771, allocations: 3.938 kB / 433.3 MB, free: 4.363 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001144/0.2772, allocations: 27.97 kB / 433.3 MB, free: 4.336 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000133/0.2774, allocations: 128.7 kB / 433.4 MB, free: 4.168 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002121/0.2776, allocations: 50.59 kB / 433.5 MB, free: 4.109 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.858e-05/0.2777, allocations: 28.88 kB / 433.5 MB, free: 4.078 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.383e-05/0.2777, allocations: 0 / 433.5 MB, free: 4.078 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.788e-05/0.2777, allocations: 38.56 kB / 433.6 MB, free: 4.031 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 9.82e-07/0.2777, allocations: 3.938 kB / 433.6 MB, free: 4.027 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003396/0.2781, allocations: 77.59 kB / 433.6 MB, free: 3.945 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.119e-05/0.2781, allocations: 55.41 kB / 433.7 MB, free: 3.879 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000106/0.2782, allocations: 105.8 kB / 433.8 MB, free: 3.766 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.837e-05/0.2783, allocations: 25.7 kB / 433.8 MB, free: 3.734 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.593e-05/0.2783, allocations: 84.14 kB / 433.9 MB, free: 3.648 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.313e-05/0.2783, allocations: 4 kB / 433.9 MB, free: 3.645 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.188e-05/0.2784, allocations: 21.72 kB / 433.9 MB, free: 3.617 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.2785, allocations: 314.8 kB / 434.2 MB, free: 3.301 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.773e-05/0.2785, allocations: 8 kB / 434.2 MB, free: 3.293 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.645e-05/0.2785, allocations: 31.38 kB / 434.3 MB, free: 3.25 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.313e-05/0.2786, allocations: 35.8 kB / 434.3 MB, free: 3.203 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.2786, allocations: 4 kB / 434.3 MB, free: 3.199 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.004e-05/0.2787, allocations: 61.53 kB / 434.4 MB, free: 3.133 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.2787, allocations: 15.92 kB / 434.4 MB, free: 3.117 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.2787, allocations: 4.188 kB / 434.4 MB, free: 3.113 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.397e-05/0.2787, allocations: 0 / 434.4 MB, free: 3.113 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.548e-05/0.2788, allocations: 8 kB / 434.4 MB, free: 3.105 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.2788, allocations: 3.984 kB / 434.4 MB, free: 3.102 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.127e-05/0.2788, allocations: 11.92 kB / 434.4 MB, free: 3.09 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.614e-06/0.2788, allocations: 4 kB / 434.4 MB, free: 3.086 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.952e-05/0.2789, allocations: 113.8 kB / 434.5 MB, free: 2.965 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001514/0.2791, allocations: 77.69 kB / 434.6 MB, free: 2.883 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.069e-05/0.2791, allocations: 7.984 kB / 434.6 MB, free: 2.867 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.2791, allocations: 0 / 434.6 MB, free: 2.867 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.2791, allocations: 0 / 434.6 MB, free: 2.867 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.2791, allocations: 4 kB / 434.6 MB, free: 2.863 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001008/0.2792, allocations: 124.8 kB / 434.7 MB, free: 2.699 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.2792, allocations: 0 / 434.7 MB, free: 2.699 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.59e-05/0.2793, allocations: 8 kB / 434.8 MB, free: 2.691 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.2793, allocations: 3.938 kB / 434.8 MB, free: 2.688 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.723e-06/0.2793, allocations: 3.938 kB / 434.8 MB, free: 2.684 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.2793, allocations: 0 / 434.8 MB, free: 2.684 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.2793, allocations: 4 kB / 434.8 MB, free: 2.68 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001827/0.2795, allocations: 97.03 kB / 434.9 MB, free: 2.566 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.148e-05/0.2795, allocations: 7.953 kB / 434.9 MB, free: 2.559 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.669e-05/0.2795, allocations: 3.938 kB / 434.9 MB, free: 2.555 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.425e-05/0.2795, allocations: 7.984 kB / 434.9 MB, free: 2.547 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.725e-06/0.2795, allocations: 0 / 434.9 MB, free: 2.547 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.178e-06/0.2795, allocations: 0 / 434.9 MB, free: 2.547 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.531e-05/0.2796, allocations: 87.28 kB / 435 MB, free: 2.461 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2796, allocations: 0 / 435 MB, free: 2.461 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001962/0.2798, allocations: 4 kB / 435 MB, free: 2.457 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.0006209/0.2804, allocations: 0.6514 MB / 435.6 MB, free: 1.777 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001431/0.2805, allocations: 27.98 kB / 435.6 MB, free: 1.75 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.183e-06/0.2805, allocations: 0 / 435.6 MB, free: 1.75 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.41e-07/0.2805, allocations: 0 / 435.6 MB, free: 1.75 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002975/0.2808, allocations: 31.94 kB / 435.7 MB, free: 1.719 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001157/0.282, allocations: 1.174 MB / 436.9 MB, free: 456 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.844e-05/0.2821, allocations: 71.64 kB / 436.9 MB, free: 364 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.55e-05/0.2821, allocations: 4 kB / 436.9 MB, free: 360 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.36e-05/0.2822, allocations: 11.44 kB / 436.9 MB, free: 348 kB / 334.1 MB Notification: Performance of SimCode: time 5.92e-07/0.2822, allocations: 0 / 436.9 MB, free: 348 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02762/0.3098, allocations: 1.912 MB / 438.8 MB, free: 14.56 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.81/11.12, allocations: 7.812 kB / 438.9 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.679645884985803]