Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000843/0.000843, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008079/0.0008079, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.926/0.926, allocations: 177 MB / 204.1 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.763e-06/1.763e-06, allocations: 0 / 324.5 MB, free: 15.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.233e-05/2.41e-05, allocations: 2.984 kB / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep): time 0.001921/0.001945, allocations: 1.458 MB / 326 MB, free: 14.44 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000181/0.002126, allocations: 31.91 kB / 326 MB, free: 14.41 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.48e-05/0.002191, allocations: 3.938 kB / 326 MB, free: 14.41 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.731e-05/0.002218, allocations: 0 / 326 MB, free: 14.41 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 3.629e-05/0.002254, allocations: 3.938 kB / 326 MB, free: 14.4 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002469/0.002501, allocations: 19.97 kB / 326 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.283e-05/0.002584, allocations: 27.92 kB / 326.1 MB, free: 14.36 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001177/0.002702, allocations: 12 kB / 326.1 MB, free: 14.34 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.283e-05/0.002755, allocations: 19.91 kB / 326.1 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.09e-05/0.002795, allocations: 11.98 kB / 326.1 MB, free: 14.31 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.442e-05/0.00282, allocations: 4 kB / 326.1 MB, free: 14.31 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.586e-06/0.002828, allocations: 0 / 326.1 MB, free: 14.31 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.815e-05/0.002847, allocations: 4 kB / 326.1 MB, free: 14.3 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.436e-05/0.002871, allocations: 7.938 kB / 326.1 MB, free: 14.3 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.511e-05/0.002966, allocations: 35.88 kB / 326.1 MB, free: 14.26 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.394e-06/0.002968, allocations: 3.938 kB / 326.1 MB, free: 14.26 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.31e-07/0.002969, allocations: 0 / 326.1 MB, free: 14.26 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.007e-06/0.002973, allocations: 4 kB / 326.2 MB, free: 14.25 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.0003179/0.003291, allocations: 274.2 kB / 326.4 MB, free: 13.95 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.003331, allocations: 15.98 kB / 326.4 MB, free: 13.94 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.851e-05/0.003359, allocations: 30.75 kB / 326.5 MB, free: 13.9 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.317e-05/0.003382, allocations: 8.891 kB / 326.5 MB, free: 13.89 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001658/0.003548, allocations: 113.8 kB / 326.6 MB, free: 13.75 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.047e-05/0.003569, allocations: 4.375 kB / 326.6 MB, free: 13.75 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.474e-06/0.003576, allocations: 384 / 326.6 MB, free: 13.75 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002581/0.003834, allocations: 127.8 kB / 326.7 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.115e-06/0.003842, allocations: 192 / 326.7 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.674e-06/0.00385, allocations: 384 / 326.7 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.003856, allocations: 4.125 kB / 326.7 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.045e-05/0.003926, allocations: 31.91 kB / 326.8 MB, free: 13.58 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001064/0.004033, allocations: 128.7 kB / 326.9 MB, free: 13.41 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001043/0.004137, allocations: 54.59 kB / 326.9 MB, free: 13.35 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.74e-05/0.004184, allocations: 24.88 kB / 327 MB, free: 13.32 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.027e-06/0.004193, allocations: 3.938 kB / 327 MB, free: 13.32 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.952e-05/0.004213, allocations: 30.56 kB / 327 MB, free: 13.28 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 6.62e-07/0.004214, allocations: 8 kB / 327 MB, free: 13.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001909/0.004405, allocations: 81.58 kB / 327.1 MB, free: 13.18 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.621e-05/0.004451, allocations: 59.34 kB / 327.1 MB, free: 13.11 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.986e-05/0.004511, allocations: 113.8 kB / 327.2 MB, free: 12.99 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.257e-06/0.00452, allocations: 25.7 kB / 327.3 MB, free: 12.96 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.409e-05/0.004554, allocations: 80.14 kB / 327.3 MB, free: 12.88 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.084e-05/0.004565, allocations: 0 / 327.3 MB, free: 12.88 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.242e-05/0.004587, allocations: 17.72 kB / 327.4 MB, free: 12.86 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.041e-05/0.004668, allocations: 322.8 kB / 327.7 MB, free: 12.53 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.835e-06/0.004675, allocations: 0 / 327.7 MB, free: 12.53 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.847e-06/0.004684, allocations: 12 kB / 327.7 MB, free: 12.52 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.081e-05/0.004705, allocations: 8.797 kB / 327.7 MB, free: 12.51 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.004707, allocations: 0 / 327.7 MB, free: 12.51 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.138e-05/0.004748, allocations: 45.66 kB / 327.7 MB, free: 12.46 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.293e-05/0.004761, allocations: 4 kB / 327.7 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.91e-06/0.004766, allocations: 0 / 327.7 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.158e-05/0.004777, allocations: 0 / 327.7 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.962e-05/0.004827, allocations: 11.92 kB / 327.8 MB, free: 12.44 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.012e-06/0.004833, allocations: 3.984 kB / 327.8 MB, free: 12.44 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.697e-06/0.004842, allocations: 0 / 327.8 MB, free: 12.44 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.936e-06/0.004845, allocations: 4.094 kB / 327.8 MB, free: 12.43 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.025e-05/0.004905, allocations: 109.8 kB / 327.9 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.553e-05/0.00498, allocations: 69.61 kB / 327.9 MB, free: 12.24 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.307e-05/0.005004, allocations: 8 kB / 328 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.005005, allocations: 0 / 328 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.005011, allocations: 3.938 kB / 328 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.005014, allocations: 0 / 328 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.337e-05/0.005077, allocations: 124.8 kB / 328.1 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.005078, allocations: 0 / 328.1 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.812e-05/0.005106, allocations: 11.98 kB / 328.1 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.022e-06/0.005107, allocations: 4 kB / 328.1 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.596e-06/0.005116, allocations: 8 kB / 328.1 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.81e-07/0.005117, allocations: 0 / 328.1 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.005118, allocations: 3.938 kB / 328.1 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.435e-05/0.005213, allocations: 92.98 kB / 328.2 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.321e-06/0.005219, allocations: 4 kB / 328.2 MB, free: 11.92 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.355e-05/0.005232, allocations: 4 kB / 328.2 MB, free: 11.92 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.323e-05/0.005246, allocations: 4.25 kB / 328.2 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.598e-06/0.00525, allocations: 3.938 kB / 328.2 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.567e-06/0.005254, allocations: 4 kB / 328.2 MB, free: 11.91 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.837e-05/0.005282, allocations: 95.14 kB / 328.3 MB, free: 11.81 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005282, allocations: 4 kB / 328.3 MB, free: 11.81 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001171/0.005399, allocations: 4 kB / 328.3 MB, free: 11.8 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.000328/0.005727, allocations: 0.6398 MB / 329 MB, free: 11.14 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 8.459e-05/0.005812, allocations: 27.92 kB / 329 MB, free: 11.11 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.005814, allocations: 0 / 329 MB, free: 11.11 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4e-07/0.005814, allocations: 0 / 329 MB, free: 11.11 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002121/0.006026, allocations: 28.8 kB / 329 MB, free: 11.08 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007006/0.006727, allocations: 1.111 MB / 330.1 MB, free: 9.887 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.319e-05/0.00677, allocations: 67.34 kB / 330.2 MB, free: 9.801 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 1.796e-05/0.006788, allocations: 0 / 330.2 MB, free: 9.801 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.817e-05/0.006826, allocations: 12.48 kB / 330.2 MB, free: 9.789 MB / 298.7 MB Notification: Performance of SimCode: time 6.01e-07/0.006827, allocations: 0 / 330.2 MB, free: 9.789 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01436/0.02119, allocations: 2.001 MB / 332.2 MB, free: 7.887 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.649/6.67, allocations: 7.984 kB / 332.2 MB, free: 7.879 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.508988263085485]