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.00129/0.00129, allocations: 109.5 kB / 20.43 MB, free: 1.457 MB / 14.72 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.001348/0.001348, allocations: 181.9 kB / 23.72 MB, free: 4.699 MB / 14.72 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 1.581/1.581, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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 0.00158/0.00158, allocations: 43.94 kB / 370.4 MB, free: 9.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2763/0.2779, allocations: 52.19 MB / 422.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep): time 0.003053/0.281, allocations: 1.463 MB / 424.1 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003903/0.2814, allocations: 95.73 kB / 424.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001129/0.2815, allocations: 3.938 kB / 424.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.887e-05/0.2815, allocations: 0 / 424.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.702e-05/0.2816, allocations: 3.938 kB / 424.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003304/0.2819, allocations: 31.84 kB / 424.2 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001092/0.282, allocations: 23.92 kB / 424.2 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001268/0.2821, allocations: 8 kB / 424.2 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.289e-05/0.2822, allocations: 11.94 kB / 424.3 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.056e-05/0.2823, allocations: 15.92 kB / 424.3 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.354e-05/0.2823, allocations: 4 kB / 424.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.066e-05/0.2823, allocations: 0 / 424.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.528e-05/0.2823, allocations: 7.938 kB / 424.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.391e-05/0.2824, allocations: 11.92 kB / 424.3 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000114/0.2825, allocations: 27.28 kB / 424.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.385e-06/0.2825, allocations: 4 kB / 424.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.148e-06/0.2825, allocations: 3.984 kB / 424.3 MB, free: 12.9 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.204e-06/0.2825, allocations: 0 / 424.3 MB, free: 12.9 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.0005517/0.283, allocations: 271.3 kB / 424.6 MB, free: 12.61 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.528e-05/0.2831, allocations: 8.031 kB / 424.6 MB, free: 12.6 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.854e-05/0.2832, allocations: 34.75 kB / 424.6 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.097e-05/0.2832, allocations: 4.938 kB / 424.6 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002953/0.2835, allocations: 126.4 kB / 424.8 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.084e-05/0.2835, allocations: 384 / 424.8 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.061e-05/0.2835, allocations: 4.375 kB / 424.8 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003311/0.2838, allocations: 111.8 kB / 424.9 MB, free: 12.28 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.232e-05/0.2838, allocations: 3.938 kB / 424.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.956e-06/0.2839, allocations: 0 / 424.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.2839, allocations: 4 kB / 424.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.609e-05/0.2839, allocations: 15.98 kB / 424.9 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001603/0.2841, allocations: 128.8 kB / 425 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001731/0.2843, allocations: 58.52 kB / 425.1 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.787e-05/0.2843, allocations: 24.83 kB / 425.1 MB, free: 11.99 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.663e-05/0.2844, allocations: 0 / 425.1 MB, free: 11.99 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.967e-05/0.2844, allocations: 34.56 kB / 425.1 MB, free: 11.95 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 8.72e-07/0.2844, allocations: 0 / 425.1 MB, free: 11.95 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002435/0.2846, allocations: 81.55 kB / 425.2 MB, free: 11.86 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.778e-05/0.2847, allocations: 51.41 kB / 425.3 MB, free: 11.8 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001145/0.2848, allocations: 109.8 kB / 425.4 MB, free: 11.68 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.773e-05/0.2848, allocations: 25.7 kB / 425.4 MB, free: 11.65 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.952e-05/0.2849, allocations: 84.14 kB / 425.5 MB, free: 11.57 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.612e-06/0.2849, allocations: 3.938 kB / 425.5 MB, free: 11.56 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.366e-05/0.2849, allocations: 25.64 kB / 425.5 MB, free: 11.53 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001384/0.285, allocations: 318.8 kB / 425.8 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.235e-05/0.285, allocations: 4 kB / 425.8 MB, free: 11.21 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.236e-05/0.2851, allocations: 27.42 kB / 425.9 MB, free: 11.17 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.938e-05/0.2851, allocations: 35.38 kB / 425.9 MB, free: 11.12 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.2851, allocations: 0 / 425.9 MB, free: 11.12 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.744e-05/0.2852, allocations: 53.88 kB / 425.9 MB, free: 11.06 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.944e-05/0.2852, allocations: 11.94 kB / 426 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.2852, allocations: 0 / 426 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.2853, allocations: 0 / 426 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.666e-05/0.2853, allocations: 12 kB / 426 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.44e-06/0.2853, allocations: 0 / 426 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.97e-05/0.2853, allocations: 4.125 kB / 426 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.2e-06/0.2853, allocations: 11.94 kB / 426 MB, free: 11.02 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 8.824e-05/0.2854, allocations: 109.8 kB / 426.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001234/0.2856, allocations: 65.56 kB / 426.2 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.056e-05/0.2856, allocations: 4 kB / 426.2 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.2856, allocations: 4 kB / 426.2 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.2856, allocations: 0 / 426.2 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.2856, allocations: 0 / 426.2 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001014/0.2857, allocations: 128.7 kB / 426.3 MB, free: 10.65 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.2857, allocations: 4 kB / 426.3 MB, free: 10.65 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.974e-05/0.2857, allocations: 8 kB / 426.3 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.2858, allocations: 3.938 kB / 426.3 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.74e-06/0.2858, allocations: 0 / 426.3 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.2858, allocations: 3.938 kB / 426.3 MB, free: 10.63 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.2858, allocations: 3.938 kB / 426.3 MB, free: 10.63 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001471/0.2859, allocations: 81.11 kB / 426.4 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.646e-05/0.2859, allocations: 19.89 kB / 426.4 MB, free: 10.51 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.407e-05/0.2859, allocations: 3.938 kB / 426.4 MB, free: 10.51 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.443e-05/0.286, allocations: 3.984 kB / 426.4 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.442e-06/0.286, allocations: 0 / 426.4 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.23e-06/0.286, allocations: 4 kB / 426.4 MB, free: 10.5 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.667e-05/0.286, allocations: 83.28 kB / 426.5 MB, free: 10.42 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.286, allocations: 0 / 426.5 MB, free: 10.42 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000183/0.2862, allocations: 4 kB / 426.5 MB, free: 10.41 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.0004602/0.2867, allocations: 0.6241 MB / 427.1 MB, free: 9.762 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001063/0.2868, allocations: 19.98 kB / 427.2 MB, free: 9.742 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.093e-06/0.2868, allocations: 4 kB / 427.2 MB, free: 9.738 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.11e-07/0.2868, allocations: 7.875 kB / 427.2 MB, free: 9.73 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000219/0.287, allocations: 24.67 kB / 427.2 MB, free: 9.707 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001219/0.2882, allocations: 1.15 MB / 428.3 MB, free: 8.457 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003204/0.2885, allocations: 0.6883 MB / 429 MB, free: 7.742 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.609e-05/0.2886, allocations: 4 kB / 429 MB, free: 7.738 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.974e-05/0.2886, allocations: 15.44 kB / 429 MB, free: 7.723 MB / 334.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2886, allocations: 0 / 429 MB, free: 7.723 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02962/0.3182, allocations: 1.344 MB / 430.4 MB, free: 6.508 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.23, allocations: 6.234 kB / 430.4 MB, free: 6.504 MB / 334.1 MB " [Timeout remaining time 649] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TimeBasedStep/TimeBasedStep.csv","/var/lib/jenkins1/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: 13.863692462000472]