Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001291/0.001291, allocations: 119 kB / 17.78 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001437/0.001437, allocations: 204.7 kB / 18.74 MB, free: 4.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.572/1.572, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001092/0.001092, allocations: 55.91 kB / 358.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3824/0.3835, allocations: 50.55 MB / 409.2 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep): time 0.002689/0.3863, allocations: 1.444 MB / 410.7 MB, free: 140 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003079/0.3866, allocations: 103.7 kB / 410.8 MB, free: 36 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.606e-05/0.3867, allocations: 0 / 410.8 MB, free: 36 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.775e-05/0.3867, allocations: 0 / 410.8 MB, free: 36 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.538e-05/0.3868, allocations: 3.938 kB / 410.8 MB, free: 32 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002633/0.3871, allocations: 23.86 kB / 410.8 MB, free: 8 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.828e-05/0.3872, allocations: 31.98 kB / 410.8 MB, free: 15.97 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001045/0.3873, allocations: 12 kB / 410.9 MB, free: 15.96 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.066e-05/0.3873, allocations: 7.938 kB / 410.9 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.455e-05/0.3874, allocations: 15.92 kB / 410.9 MB, free: 15.94 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.558e-05/0.3874, allocations: 0 / 410.9 MB, free: 15.94 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.02e-05/0.3874, allocations: 4 kB / 410.9 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.917e-05/0.3874, allocations: 7.938 kB / 410.9 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.105e-05/0.3875, allocations: 11.94 kB / 410.9 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 8.921e-05/0.3875, allocations: 27.81 kB / 410.9 MB, free: 15.89 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.3876, allocations: 3.984 kB / 410.9 MB, free: 15.89 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.3876, allocations: 0 / 410.9 MB, free: 15.89 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.949e-06/0.3876, allocations: 0 / 410.9 MB, free: 15.89 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.0003993/0.388, allocations: 343.3 kB / 411.3 MB, free: 15.5 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.388, allocations: 8.031 kB / 411.3 MB, free: 15.5 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.232e-05/0.3881, allocations: 8.891 kB / 411.3 MB, free: 15.49 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000202/0.3883, allocations: 176.2 kB / 411.5 MB, free: 15.28 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.578e-06/0.3883, allocations: 4.375 kB / 411.5 MB, free: 15.27 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.41e-05/0.3883, allocations: 8.312 kB / 411.5 MB, free: 15.27 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002974/0.3886, allocations: 107.9 kB / 411.6 MB, free: 15.15 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.874e-06/0.3886, allocations: 192 / 411.6 MB, free: 15.15 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.789e-06/0.3886, allocations: 3.938 kB / 411.6 MB, free: 15.14 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.3886, allocations: 0 / 411.6 MB, free: 15.14 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.08e-05/0.3887, allocations: 23.92 kB / 411.6 MB, free: 15.12 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001494/0.3889, allocations: 157.6 kB / 411.8 MB, free: 14.92 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001444/0.389, allocations: 62.52 kB / 411.8 MB, free: 14.85 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.653e-05/0.3891, allocations: 20.89 kB / 411.8 MB, free: 14.82 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.556e-05/0.3891, allocations: 4 kB / 411.8 MB, free: 14.82 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.699e-05/0.3891, allocations: 30.56 kB / 411.9 MB, free: 14.78 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 9.22e-07/0.3891, allocations: 0 / 411.9 MB, free: 14.78 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002178/0.3894, allocations: 77.59 kB / 411.9 MB, free: 14.7 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.156e-05/0.3894, allocations: 55.41 kB / 412 MB, free: 14.63 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.728e-05/0.3895, allocations: 109.8 kB / 412.1 MB, free: 14.52 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.724e-05/0.3895, allocations: 33.64 kB / 412.1 MB, free: 14.48 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.943e-05/0.3896, allocations: 80.14 kB / 412.2 MB, free: 14.39 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.684e-06/0.3896, allocations: 3.984 kB / 412.2 MB, free: 14.39 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.101e-05/0.3896, allocations: 17.72 kB / 412.2 MB, free: 14.37 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001008/0.3897, allocations: 318.8 kB / 412.5 MB, free: 14.05 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.151e-05/0.3897, allocations: 4 kB / 412.6 MB, free: 14.04 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.757e-05/0.3898, allocations: 27.42 kB / 412.6 MB, free: 14 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.003e-05/0.3898, allocations: 35.38 kB / 412.6 MB, free: 13.95 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.3898, allocations: 4 kB / 412.6 MB, free: 13.95 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.205e-05/0.3899, allocations: 57.58 kB / 412.7 MB, free: 13.89 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.3899, allocations: 6.969 kB / 412.7 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.3899, allocations: 3.938 kB / 412.7 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.3899, allocations: 4 kB / 412.7 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.636e-05/0.39, allocations: 4.25 kB / 412.7 MB, free: 13.87 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.39, allocations: 7.922 kB / 412.7 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.144e-05/0.39, allocations: 12 kB / 412.7 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.596e-06/0.3901, allocations: 4.125 kB / 412.7 MB, free: 13.85 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.664e-05/0.3901, allocations: 113.8 kB / 412.8 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.723e-05/0.3902, allocations: 57.67 kB / 412.9 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.22e-05/0.3903, allocations: 11.84 kB / 412.9 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-06/0.3903, allocations: 0 / 412.9 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.3903, allocations: 0 / 412.9 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.075e-06/0.3903, allocations: 0 / 412.9 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001066/0.3904, allocations: 157.7 kB / 413 MB, free: 13.44 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.3904, allocations: 4 kB / 413.1 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.851e-05/0.3905, allocations: 8 kB / 413.1 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.3905, allocations: 3.938 kB / 413.1 MB, free: 13.42 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.158e-05/0.3905, allocations: 7.875 kB / 413.1 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.3905, allocations: 3.938 kB / 413.1 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.3905, allocations: 0 / 413.1 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001485/0.3907, allocations: 85.06 kB / 413.2 MB, free: 13.31 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.291e-05/0.3907, allocations: 85.11 kB / 413.2 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.262e-05/0.3907, allocations: 7.938 kB / 413.2 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.322e-05/0.3908, allocations: 3.984 kB / 413.3 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.204e-06/0.3908, allocations: 4 kB / 413.3 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.086e-06/0.3908, allocations: 0 / 413.3 MB, free: 13.19 MB / 334.1 MB Notification: Performance of sorting global known variables: time 3.632e-05/0.3908, allocations: 79.28 kB / 413.3 MB, free: 13.11 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3908, allocations: 0 / 413.3 MB, free: 13.11 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001754/0.391, allocations: 8 kB / 413.3 MB, free: 13.11 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.000102/0.3911, allocations: 99.23 kB / 413.4 MB, free: 13 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001177/0.3912, allocations: 31.92 kB / 413.5 MB, free: 12.97 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3912, allocations: 0 / 413.5 MB, free: 12.97 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.41e-07/0.3913, allocations: 0 / 413.5 MB, free: 12.97 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002116/0.3915, allocations: 19.98 kB / 413.5 MB, free: 12.95 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002568/0.3917, allocations: 117.5 kB / 413.6 MB, free: 12.81 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002189/0.392, allocations: 0.6846 MB / 414.3 MB, free: 12.1 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.361e-05/0.392, allocations: 4.25 kB / 414.3 MB, free: 12.09 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.25e-05/0.392, allocations: 7.438 kB / 414.3 MB, free: 12.09 MB / 334.1 MB Notification: Performance of SimCode: time 1.91e-07/0.392, allocations: 0 / 414.3 MB, free: 12.09 MB / 334.1 MB Notification: Performance of Templates: time 0.002321/0.3943, allocations: 325.3 kB / 414.6 MB, free: 11.77 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TimeBasedStep/TimeBasedStep.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches