Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.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.0009617/0.0009617, allocations: 76.08 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.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.0009126/0.0009126, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.9441/0.9441, allocations: 173.4 MB / 200.4 MB, free: 9.438 MB / 186.7 MB " [Timeout remaining time 179] 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.RealSignals.TickBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.124e-06/2.124e-06, allocations: 0 / 318.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.93e-05/2.142e-05, allocations: 5.516 kB / 318.5 MB, free: 6.344 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep): time 0.00201/0.002031, allocations: 1.442 MB / 319.9 MB, free: 4.887 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001828/0.002214, allocations: 35.84 kB / 319.9 MB, free: 4.852 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.281e-05/0.002277, allocations: 0 / 319.9 MB, free: 4.852 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.035e-05/0.002307, allocations: 3.938 kB / 319.9 MB, free: 4.848 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 4.04e-05/0.002348, allocations: 0 / 319.9 MB, free: 4.848 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002388/0.002586, allocations: 31.84 kB / 320 MB, free: 4.816 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 7.844e-05/0.002665, allocations: 35.92 kB / 320 MB, free: 4.781 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000105/0.00277, allocations: 7.984 kB / 320 MB, free: 4.773 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.939e-05/0.002819, allocations: 19.92 kB / 320 MB, free: 4.754 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.376e-05/0.002853, allocations: 4 kB / 320 MB, free: 4.75 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.389e-05/0.002877, allocations: 4 kB / 320 MB, free: 4.746 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.165e-06/0.002885, allocations: 4 kB / 320 MB, free: 4.742 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.127e-05/0.002906, allocations: 15.91 kB / 320.1 MB, free: 4.727 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.629e-05/0.002933, allocations: 4 kB / 320.1 MB, free: 4.723 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 8.99e-05/0.003023, allocations: 31.89 kB / 320.1 MB, free: 4.691 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.003026, allocations: 4 kB / 320.1 MB, free: 4.688 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.003028, allocations: 3.938 kB / 320.1 MB, free: 4.684 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.138e-06/0.003032, allocations: 4 kB / 320.1 MB, free: 4.68 MB / 282.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.0003289/0.003361, allocations: 266.3 kB / 320.4 MB, free: 4.387 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/0.0034, allocations: 8.922 kB / 320.4 MB, free: 4.379 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.33e-05/0.003433, allocations: 42.73 kB / 320.4 MB, free: 4.328 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.219e-05/0.003456, allocations: 4.938 kB / 320.4 MB, free: 4.324 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001682/0.003624, allocations: 117.7 kB / 320.5 MB, free: 4.184 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.852e-05/0.003642, allocations: 4.312 kB / 320.5 MB, free: 4.18 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.917e-06/0.003651, allocations: 4.375 kB / 320.5 MB, free: 4.176 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002475/0.003899, allocations: 119.9 kB / 320.7 MB, free: 4.047 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-06/0.003907, allocations: 4.172 kB / 320.7 MB, free: 4.043 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.797e-06/0.003915, allocations: 384 / 320.7 MB, free: 4.043 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.942e-06/0.003921, allocations: 8.125 kB / 320.7 MB, free: 4.035 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.069e-05/0.003992, allocations: 19.97 kB / 320.7 MB, free: 4.016 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001011/0.004093, allocations: 124.8 kB / 320.8 MB, free: 3.852 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001055/0.004198, allocations: 58.48 kB / 320.9 MB, free: 3.785 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.807e-05/0.004247, allocations: 24.92 kB / 320.9 MB, free: 3.758 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.177e-06/0.004256, allocations: 0 / 320.9 MB, free: 3.758 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.298e-05/0.004279, allocations: 38.56 kB / 320.9 MB, free: 3.711 MB / 282.7 MB Notification: Performance of pre-optimization done (n=4): time 9.82e-07/0.00428, allocations: 4 kB / 320.9 MB, free: 3.707 MB / 282.7 MB Notification: Performance of matching and sorting (n=4): time 0.000195/0.004475, allocations: 81.61 kB / 321 MB, free: 3.621 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.678e-05/0.004521, allocations: 55.34 kB / 321.1 MB, free: 3.555 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.206e-05/0.004584, allocations: 105.8 kB / 321.2 MB, free: 3.441 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.161e-05/0.004595, allocations: 29.64 kB / 321.2 MB, free: 3.406 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.692e-05/0.004632, allocations: 88.14 kB / 321.3 MB, free: 3.316 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.42e-05/0.004646, allocations: 3.938 kB / 321.3 MB, free: 3.312 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.935e-05/0.004676, allocations: 9.719 kB / 321.3 MB, free: 3.297 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.084e-05/0.004766, allocations: 318.8 kB / 321.6 MB, free: 2.977 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.192e-05/0.004778, allocations: 4 kB / 321.6 MB, free: 2.973 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.494e-06/0.004786, allocations: 8 kB / 321.6 MB, free: 2.965 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.34e-05/0.004809, allocations: 4.859 kB / 321.6 MB, free: 2.957 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.004811, allocations: 7.938 kB / 321.6 MB, free: 2.949 MB / 282.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.647e-05/0.004858, allocations: 41.69 kB / 321.7 MB, free: 2.902 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.341e-05/0.004871, allocations: 4 kB / 321.7 MB, free: 2.898 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.004876, allocations: 0 / 321.7 MB, free: 2.898 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/0.004889, allocations: 0 / 321.7 MB, free: 2.898 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.528e-05/0.004944, allocations: 11.88 kB / 321.7 MB, free: 2.887 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.64e-06/0.00495, allocations: 0 / 321.7 MB, free: 2.887 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.041e-05/0.00496, allocations: 8.047 kB / 321.7 MB, free: 2.879 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.558e-06/0.004965, allocations: 0 / 321.7 MB, free: 2.879 MB / 282.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.367e-05/0.005028, allocations: 113.8 kB / 321.8 MB, free: 2.758 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.59e-05/0.005114, allocations: 61.67 kB / 321.9 MB, free: 2.691 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.471e-05/0.005139, allocations: 8 kB / 321.9 MB, free: 2.676 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.005141, allocations: 256 / 321.9 MB, free: 2.676 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.313e-06/0.005149, allocations: 7.922 kB / 321.9 MB, free: 2.668 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.005152, allocations: 4 kB / 321.9 MB, free: 2.664 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.026e-05/0.005223, allocations: 124.8 kB / 322 MB, free: 2.5 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.005225, allocations: 3.984 kB / 322 MB, free: 2.496 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.024e-05/0.005255, allocations: 12 kB / 322 MB, free: 2.484 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.005259, allocations: 4 kB / 322 MB, free: 2.48 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.953e-06/0.005266, allocations: 0 / 322 MB, free: 2.48 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.22e-07/0.005266, allocations: 0 / 322 MB, free: 2.48 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.005269, allocations: 12.09 kB / 322 MB, free: 2.469 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001125/0.005382, allocations: 97.03 kB / 322.1 MB, free: 2.355 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.366e-06/0.00539, allocations: 4 kB / 322.1 MB, free: 2.352 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.288e-05/0.005403, allocations: 0 / 322.1 MB, free: 2.352 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.416e-05/0.005417, allocations: 4 kB / 322.1 MB, free: 2.348 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.458e-06/0.005422, allocations: 7.875 kB / 322.2 MB, free: 2.34 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.02e-06/0.005427, allocations: 3.984 kB / 322.2 MB, free: 2.336 MB / 282.7 MB Notification: Performance of sorting global known variables: time 3.415e-05/0.005461, allocations: 87.28 kB / 322.2 MB, free: 2.25 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005461, allocations: 0 / 322.2 MB, free: 2.25 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001266/0.005587, allocations: 4 kB / 322.2 MB, free: 2.246 MB / 282.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: 1 (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.0003668/0.005954, allocations: 0.6475 MB / 322.9 MB, free: 1.57 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 9.364e-05/0.006048, allocations: 19.98 kB / 322.9 MB, free: 1.551 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.006049, allocations: 0 / 322.9 MB, free: 1.551 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 4.41e-07/0.00605, allocations: 0 / 322.9 MB, free: 1.551 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002427/0.006292, allocations: 34.91 kB / 322.9 MB, free: 1.52 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006983/0.006991, allocations: 1.122 MB / 324.1 MB, free: 320 kB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.876e-05/0.00703, allocations: 63.34 kB / 324.1 MB, free: 236 kB / 282.7 MB Notification: Performance of simCode: alias equations: time 2.324e-05/0.007053, allocations: 3.984 kB / 324.1 MB, free: 232 kB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.862e-05/0.007091, allocations: 12.5 kB / 324.1 MB, free: 220 kB / 282.7 MB Notification: Performance of SimCode: time 5.91e-07/0.007092, allocations: 7.938 kB / 324.2 MB, free: 212 kB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01935/0.02644, allocations: 1.992 MB / 326.1 MB, free: 14.34 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.746/6.772, allocations: 17.72 kB / 326.2 MB, free: 14.33 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.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_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedStep/TickBasedStep.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.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,assignClock1.u,assignClock1.y,step.y,periodicClock1.period,step.height [Calling sys.exit(0), Time elapsed: 8.635110919363797]