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.001228/0.001228, allocations: 79.7 kB / 20.67 MB, free: 3.891 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.001443/0.001443, allocations: 174.3 kB / 23.95 MB, free: 0.6133 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.9475/0.9475, allocations: 177.1 MB / 204.3 MB, free: 5.742 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.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 1.744e-06/1.744e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.238e-05/2.413e-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.TickBasedStep): time 0.002062/0.002086, allocations: 1.446 MB / 326 MB, free: 14.49 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001836/0.00227, allocations: 35.84 kB / 326 MB, free: 14.45 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.751e-05/0.002328, allocations: 4 kB / 326 MB, free: 14.45 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.772e-05/0.002355, allocations: 3.938 kB / 326.1 MB, free: 14.45 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 3.196e-05/0.002387, allocations: 0 / 326.1 MB, free: 14.45 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002422/0.002629, allocations: 31.84 kB / 326.1 MB, free: 14.41 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.891e-05/0.002708, allocations: 27.92 kB / 326.1 MB, free: 14.39 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.15e-05/0.0028, allocations: 0 / 326.1 MB, free: 14.39 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.754e-05/0.002847, allocations: 19.98 kB / 326.1 MB, free: 14.37 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.35e-05/0.002891, allocations: 15.91 kB / 326.1 MB, free: 14.35 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.813e-05/0.002919, allocations: 4 kB / 326.1 MB, free: 14.35 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.725e-06/0.002927, allocations: 0 / 326.1 MB, free: 14.35 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.738e-05/0.002944, allocations: 12 kB / 326.2 MB, free: 14.34 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.295e-05/0.002967, allocations: 0 / 326.2 MB, free: 14.34 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.441e-05/0.003062, allocations: 39.81 kB / 326.2 MB, free: 14.3 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.003065, allocations: 0 / 326.2 MB, free: 14.3 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.003066, allocations: 0 / 326.2 MB, free: 14.3 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.003071, allocations: 0 / 326.2 MB, free: 14.3 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.0003591/0.00343, allocations: 273.2 kB / 326.5 MB, free: 14 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/0.00347, allocations: 12.03 kB / 326.5 MB, free: 13.99 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.937e-05/0.0035, allocations: 30.75 kB / 326.5 MB, free: 13.95 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.475e-05/0.003525, allocations: 12.89 kB / 326.5 MB, free: 13.94 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001885/0.003713, allocations: 121.7 kB / 326.6 MB, free: 13.79 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.105e-05/0.003734, allocations: 4.375 kB / 326.6 MB, free: 13.79 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.547e-06/0.003743, allocations: 4.375 kB / 326.6 MB, free: 13.79 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002656/0.004008, allocations: 123.8 kB / 326.8 MB, free: 13.65 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/0.004017, allocations: 4.172 kB / 326.8 MB, free: 13.65 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.997e-06/0.004026, allocations: 384 / 326.8 MB, free: 13.65 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.622e-06/0.004033, allocations: 4.125 kB / 326.8 MB, free: 13.64 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.659e-05/0.00411, allocations: 23.97 kB / 326.8 MB, free: 13.62 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001149/0.004225, allocations: 136.6 kB / 326.9 MB, free: 13.45 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001056/0.00433, allocations: 54.5 kB / 327 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.885e-05/0.004379, allocations: 28.91 kB / 327 MB, free: 13.35 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.987e-06/0.004388, allocations: 0 / 327 MB, free: 13.35 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.807e-05/0.004406, allocations: 30.56 kB / 327 MB, free: 13.31 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 7.81e-07/0.004407, allocations: 0 / 327 MB, free: 13.31 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001983/0.004605, allocations: 77.66 kB / 327.1 MB, free: 13.23 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.011e-05/0.004655, allocations: 63.34 kB / 327.2 MB, free: 13.16 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.864e-05/0.004714, allocations: 109.8 kB / 327.3 MB, free: 13.04 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.012e-05/0.004724, allocations: 25.7 kB / 327.3 MB, free: 13.01 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.82e-05/0.004752, allocations: 84.14 kB / 327.4 MB, free: 12.92 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.077e-05/0.004763, allocations: 4 kB / 327.4 MB, free: 12.92 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.501e-05/0.004788, allocations: 13.72 kB / 327.4 MB, free: 12.9 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.718e-05/0.004865, allocations: 322.8 kB / 327.7 MB, free: 12.57 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.106e-06/0.004873, allocations: 0 / 327.7 MB, free: 12.57 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.531e-06/0.004879, allocations: 0 / 327.7 MB, free: 12.57 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.142e-05/0.0049, allocations: 8.859 kB / 327.7 MB, free: 12.56 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.004902, allocations: 0 / 327.7 MB, free: 12.56 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.399e-05/0.004946, allocations: 45.66 kB / 327.8 MB, free: 12.51 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.317e-05/0.004959, allocations: 4 kB / 327.8 MB, free: 12.51 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.459e-06/0.004963, allocations: 4.094 kB / 327.8 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.153e-05/0.004975, allocations: 3.938 kB / 327.8 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.588e-05/0.005031, allocations: 11.92 kB / 327.8 MB, free: 12.49 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.005036, allocations: 0 / 327.8 MB, free: 12.49 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.007e-05/0.005046, allocations: 256 / 327.8 MB, free: 12.49 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.476e-06/0.00505, allocations: 0 / 327.8 MB, free: 12.49 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: 2 ($CLKPRE.step.counter,step.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.774e-05/0.005117, allocations: 117.8 kB / 327.9 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.43e-05/0.005202, allocations: 57.67 kB / 328 MB, free: 12.3 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.188e-05/0.005223, allocations: 12 kB / 328 MB, free: 12.29 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.005225, allocations: 0 / 328 MB, free: 12.29 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.005232, allocations: 7.938 kB / 328 MB, free: 12.28 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.005235, allocations: 3.938 kB / 328 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.429e-05/0.005299, allocations: 128.8 kB / 328.1 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.0053, allocations: 0 / 328.1 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.575e-05/0.005336, allocations: 15.92 kB / 328.1 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.005339, allocations: 0 / 328.1 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.825e-06/0.005346, allocations: 4 kB / 328.1 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.005348, allocations: 3.938 kB / 328.1 MB, free: 12.08 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.00535, allocations: 3.938 kB / 328.2 MB, free: 12.08 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000104/0.005454, allocations: 97.27 kB / 328.2 MB, free: 11.96 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.665e-06/0.005461, allocations: 4 kB / 328.3 MB, free: 11.96 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.189e-05/0.005473, allocations: 4 kB / 328.3 MB, free: 11.96 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.341e-05/0.005487, allocations: 4 kB / 328.3 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.847e-06/0.005491, allocations: 3.938 kB / 328.3 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.978e-06/0.005495, allocations: 0 / 328.3 MB, free: 11.95 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.086e-05/0.005525, allocations: 87.27 kB / 328.3 MB, free: 11.86 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.005525, allocations: 0 / 328.3 MB, free: 11.86 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001201/0.005645, allocations: 4 kB / 328.4 MB, free: 11.86 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: 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.0003748/0.00602, allocations: 0.6514 MB / 329 MB, free: 11.18 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.144e-05/0.006112, allocations: 16.05 kB / 329 MB, free: 11.16 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.442e-06/0.006113, allocations: 4.062 kB / 329 MB, free: 11.16 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.6e-07/0.006114, allocations: 0 / 329 MB, free: 11.16 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000246/0.00636, allocations: 35.89 kB / 329.1 MB, free: 11.12 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008987/0.007258, allocations: 1.111 MB / 330.2 MB, free: 9.93 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.624e-05/0.007315, allocations: 63.34 kB / 330.2 MB, free: 9.848 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.076e-05/0.007345, allocations: 0 / 330.2 MB, free: 9.848 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.344e-05/0.007399, allocations: 16.5 kB / 330.2 MB, free: 9.832 MB / 298.7 MB Notification: Performance of SimCode: time 1.133e-06/0.0074, allocations: 0 / 330.2 MB, free: 9.832 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0198/0.0272, allocations: 2.011 MB / 332.3 MB, free: 7.945 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.926/6.953, allocations: 0 / 332.3 MB, free: 7.945 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TickBasedStep/TickBasedStep.csv","/var/lib/jenkins/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: 8.83366780448705]