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.0008574/0.0008574, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0009803/0.0009803, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.9043/0.9043, allocations: 177.1 MB / 204.3 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] 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 1.503e-06/1.503e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.421e-05/1.571e-05, allocations: 2.281 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep): time 0.001834/0.00185, allocations: 1.458 MB / 326 MB, free: 14.48 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002461/0.002096, allocations: 95.69 kB / 326.1 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.465e-05/0.002161, allocations: 0 / 326.1 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.563e-05/0.002196, allocations: 3.938 kB / 326.1 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 3.963e-05/0.002236, allocations: 11.86 kB / 326.1 MB, free: 14.37 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002364/0.002472, allocations: 31.91 kB / 326.2 MB, free: 14.34 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.047e-05/0.002563, allocations: 31.91 kB / 326.2 MB, free: 14.3 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.892e-05/0.002662, allocations: 4 kB / 326.2 MB, free: 14.3 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.961e-05/0.002711, allocations: 19.92 kB / 326.2 MB, free: 14.28 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.869e-05/0.00276, allocations: 4 kB / 326.2 MB, free: 14.28 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.69e-05/0.002787, allocations: 0 / 326.2 MB, free: 14.28 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.357e-06/0.002796, allocations: 4 kB / 326.2 MB, free: 14.27 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.984e-05/0.002816, allocations: 3.984 kB / 326.2 MB, free: 14.27 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.055e-05/0.002847, allocations: 15.92 kB / 326.2 MB, free: 14.25 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.701e-05/0.002944, allocations: 23.97 kB / 326.3 MB, free: 14.23 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.315e-06/0.002946, allocations: 0 / 326.3 MB, free: 14.23 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.002947, allocations: 7.938 kB / 326.3 MB, free: 14.22 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.518e-06/0.002952, allocations: 0 / 326.3 MB, free: 14.22 MB / 298.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.0004211/0.003373, allocations: 265.2 kB / 326.5 MB, free: 13.93 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.015e-05/0.003423, allocations: 12.03 kB / 326.5 MB, free: 13.92 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.999e-05/0.003463, allocations: 34.75 kB / 326.6 MB, free: 13.88 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.78e-05/0.003491, allocations: 8.891 kB / 326.6 MB, free: 13.87 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002188/0.00371, allocations: 117.7 kB / 326.7 MB, free: 13.73 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.219e-05/0.003722, allocations: 384 / 326.7 MB, free: 13.73 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.198e-05/0.003734, allocations: 8.375 kB / 326.7 MB, free: 13.72 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003132/0.004047, allocations: 111.8 kB / 326.8 MB, free: 13.6 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.004056, allocations: 192 / 326.8 MB, free: 13.6 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.097e-06/0.004065, allocations: 384 / 326.8 MB, free: 13.6 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.004071, allocations: 4.125 kB / 326.8 MB, free: 13.6 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.736e-05/0.004129, allocations: 23.92 kB / 326.8 MB, free: 13.57 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001016/0.00423, allocations: 132.7 kB / 327 MB, free: 13.4 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001043/0.004335, allocations: 58.58 kB / 327 MB, free: 13.34 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.655e-05/0.004371, allocations: 20.89 kB / 327.1 MB, free: 13.31 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.716e-05/0.004388, allocations: 0 / 327.1 MB, free: 13.31 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.871e-05/0.004407, allocations: 38.5 kB / 327.1 MB, free: 13.27 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 6.62e-07/0.004408, allocations: 0 / 327.1 MB, free: 13.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001714/0.004579, allocations: 69.61 kB / 327.2 MB, free: 13.19 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.79e-05/0.004627, allocations: 55.34 kB / 327.2 MB, free: 13.12 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.022e-05/0.004687, allocations: 105.8 kB / 327.3 MB, free: 13.01 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.427e-06/0.004697, allocations: 25.7 kB / 327.3 MB, free: 12.98 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.176e-05/0.004728, allocations: 92.14 kB / 327.4 MB, free: 12.89 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.554e-06/0.004731, allocations: 0 / 327.4 MB, free: 12.89 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.742e-05/0.004748, allocations: 9.719 kB / 327.4 MB, free: 12.87 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.66e-05/0.004835, allocations: 322.8 kB / 327.8 MB, free: 12.55 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.238e-06/0.004839, allocations: 0 / 327.8 MB, free: 12.55 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.805e-06/0.004842, allocations: 0 / 327.8 MB, free: 12.55 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.021e-05/0.004862, allocations: 75.28 kB / 327.8 MB, free: 12.47 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.694e-05/0.004879, allocations: 75.28 kB / 327.9 MB, free: 12.4 MB / 298.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 3.565e-05/0.004915, allocations: 33.64 kB / 327.9 MB, free: 12.36 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.569e-05/0.00494, allocations: 79.28 kB / 328 MB, free: 12.28 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.145e-05/0.004962, allocations: 83.28 kB / 328.1 MB, free: 12.2 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.275e-05/0.005005, allocations: 150.6 kB / 328.2 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.087e-05/0.005026, allocations: 87.14 kB / 328.3 MB, free: 11.96 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.745e-05/0.005063, allocations: 150.6 kB / 328.5 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.396e-05/0.005107, allocations: 83.22 kB / 328.6 MB, free: 11.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.921e-05/0.005126, allocations: 79.28 kB / 328.6 MB, free: 11.66 MB / 298.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.856e-05/0.005195, allocations: 185.1 kB / 328.8 MB, free: 11.46 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.919e-05/0.005264, allocations: 61.81 kB / 328.9 MB, free: 11.4 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.125e-05/0.005285, allocations: 7.984 kB / 328.9 MB, free: 11.39 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.526e-06/0.005289, allocations: 11.92 kB / 328.9 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.005293, allocations: 8.188 kB / 328.9 MB, free: 11.37 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.005296, allocations: 0 / 328.9 MB, free: 11.37 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.711e-05/0.005353, allocations: 128.8 kB / 329 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.005356, allocations: 0 / 329 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.545e-05/0.005411, allocations: 8 kB / 329 MB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.005414, allocations: 0 / 329 MB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.312e-06/0.00542, allocations: 0 / 329 MB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.005423, allocations: 0 / 329 MB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.818e-06/0.005427, allocations: 7.922 kB / 329 MB, free: 11.18 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.356e-05/0.0055, allocations: 77.12 kB / 329.1 MB, free: 11.09 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.047e-05/0.005511, allocations: 11.95 kB / 329.1 MB, free: 11.08 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.2e-05/0.005523, allocations: 3.984 kB / 329.1 MB, free: 11.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.095e-05/0.005534, allocations: 4 kB / 329.1 MB, free: 11.07 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.447e-06/0.005537, allocations: 3.938 kB / 329.1 MB, free: 11.07 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.897e-06/0.005541, allocations: 0 / 329.1 MB, free: 11.07 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.664e-05/0.005568, allocations: 83.28 kB / 329.2 MB, free: 10.98 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.005568, allocations: 7.875 kB / 329.2 MB, free: 10.98 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001417/0.00571, allocations: 4 kB / 329.2 MB, free: 10.97 MB / 298.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.0002323/0.005942, allocations: 0.6164 MB / 329.8 MB, free: 10.33 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 5.259e-05/0.005994, allocations: 12 kB / 329.9 MB, free: 10.32 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.005997, allocations: 4 kB / 329.9 MB, free: 10.31 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.41e-07/0.005997, allocations: 0 / 329.9 MB, free: 10.31 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001769/0.006174, allocations: 30.42 kB / 329.9 MB, free: 10.29 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007249/0.006899, allocations: 1.372 MB / 331.3 MB, free: 8.832 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.921e-05/0.006938, allocations: 63.34 kB / 331.3 MB, free: 8.75 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 1.044e-05/0.006949, allocations: 0 / 331.3 MB, free: 8.75 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.935e-05/0.006988, allocations: 24.48 kB / 331.4 MB, free: 8.727 MB / 298.7 MB Notification: Performance of SimCode: time 6.11e-07/0.006989, allocations: 0 / 331.4 MB, free: 8.727 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01524/0.02223, allocations: 1.826 MB / 333.2 MB, free: 7.02 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.126/7.148, allocations: 7.125 kB / 333.2 MB, free: 7.016 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TimeBasedStep/TimeBasedStep.csv","/var/lib/jenkins/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: 8.960366000421345]