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.001671/0.001671, allocations: 115.6 kB / 20.43 MB, free: 1.457 MB / 14.72 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.001746/0.001746, allocations: 214.1 kB / 23.75 MB, free: 4.668 MB / 14.72 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 1.644/1.644, allocations: 230.6 MB / 257.5 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] 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: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001574/0.001574, allocations: 55.94 kB / 378.3 MB, free: 2.648 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2773/0.2789, allocations: 53.36 MB / 431.6 MB, free: 6.945 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep): time 0.003095/0.282, allocations: 1.455 MB / 433.1 MB, free: 5.488 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000218/0.2822, allocations: 27.91 kB / 433.1 MB, free: 5.461 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.379e-05/0.2823, allocations: 7.938 kB / 433.1 MB, free: 5.453 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.281e-05/0.2823, allocations: 7.938 kB / 433.1 MB, free: 5.445 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.032e-05/0.2824, allocations: 3.938 kB / 433.1 MB, free: 5.441 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003037/0.2827, allocations: 19.98 kB / 433.1 MB, free: 5.422 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000116/0.2828, allocations: 27.91 kB / 433.2 MB, free: 5.395 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001281/0.2829, allocations: 8 kB / 433.2 MB, free: 5.387 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.163e-05/0.283, allocations: 15.92 kB / 433.2 MB, free: 5.371 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.674e-05/0.283, allocations: 15.92 kB / 433.2 MB, free: 5.355 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.721e-05/0.283, allocations: 4 kB / 433.2 MB, free: 5.352 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.038e-05/0.2831, allocations: 4 kB / 433.2 MB, free: 5.348 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.867e-05/0.2831, allocations: 4 kB / 433.2 MB, free: 5.344 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.759e-05/0.2831, allocations: 15.88 kB / 433.2 MB, free: 5.328 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001082/0.2832, allocations: 29.44 kB / 433.3 MB, free: 5.301 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.653e-06/0.2832, allocations: 7.984 kB / 433.3 MB, free: 5.293 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.2832, allocations: 0 / 433.3 MB, free: 5.293 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.2832, allocations: 0 / 433.3 MB, free: 5.293 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.0004939/0.2837, allocations: 266 kB / 433.5 MB, free: 5.004 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.2838, allocations: 8.031 kB / 433.5 MB, free: 4.996 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.815e-05/0.2838, allocations: 12.88 kB / 433.5 MB, free: 4.984 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000314/0.2841, allocations: 114.5 kB / 433.7 MB, free: 4.848 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.483e-05/0.2842, allocations: 8.375 kB / 433.7 MB, free: 4.84 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.164e-05/0.2842, allocations: 8.297 kB / 433.7 MB, free: 4.832 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003989/0.2846, allocations: 119.8 kB / 433.8 MB, free: 4.703 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.2846, allocations: 192 / 433.8 MB, free: 4.703 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.363e-05/0.2846, allocations: 3.938 kB / 433.8 MB, free: 4.699 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.2846, allocations: 0 / 433.8 MB, free: 4.699 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001242/0.2847, allocations: 27.97 kB / 433.8 MB, free: 4.672 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001812/0.2849, allocations: 132.7 kB / 434 MB, free: 4.5 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00018/0.2851, allocations: 58.52 kB / 434 MB, free: 4.434 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.289e-05/0.2852, allocations: 28.88 kB / 434 MB, free: 4.402 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.737e-05/0.2852, allocations: 3.984 kB / 434 MB, free: 4.398 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.532e-05/0.2852, allocations: 34.56 kB / 434.1 MB, free: 4.355 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 9.92e-07/0.2852, allocations: 0 / 434.1 MB, free: 4.355 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003138/0.2855, allocations: 85.53 kB / 434.2 MB, free: 4.266 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.721e-05/0.2856, allocations: 59.41 kB / 434.2 MB, free: 4.195 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001175/0.2857, allocations: 105.8 kB / 434.3 MB, free: 4.082 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.164e-05/0.2857, allocations: 25.7 kB / 434.3 MB, free: 4.051 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.325e-05/0.2858, allocations: 84.14 kB / 434.4 MB, free: 3.965 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.224e-05/0.2858, allocations: 7.953 kB / 434.4 MB, free: 3.957 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.563e-05/0.2859, allocations: 13.72 kB / 434.4 MB, free: 3.938 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002759/0.2861, allocations: 318.8 kB / 434.8 MB, free: 3.617 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.722e-05/0.2862, allocations: 11.94 kB / 434.8 MB, free: 3.605 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.838e-05/0.2862, allocations: 27.44 kB / 434.8 MB, free: 3.566 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.637e-05/0.2863, allocations: 39.36 kB / 434.8 MB, free: 3.516 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.2863, allocations: 4 kB / 434.8 MB, free: 3.512 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.497e-05/0.2864, allocations: 57.64 kB / 434.9 MB, free: 3.449 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.511e-05/0.2864, allocations: 4 kB / 434.9 MB, free: 3.445 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.2864, allocations: 7.938 kB / 434.9 MB, free: 3.438 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.769e-05/0.2864, allocations: 3.984 kB / 434.9 MB, free: 3.434 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.464e-05/0.2865, allocations: 11.94 kB / 434.9 MB, free: 3.422 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.192e-06/0.2865, allocations: 0 / 434.9 MB, free: 3.422 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.791e-05/0.2865, allocations: 11.88 kB / 434.9 MB, free: 3.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.587e-06/0.2865, allocations: 0 / 434.9 MB, free: 3.41 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: 5 ($CLKPRE.step.counter,step.counter,step.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 0.0001006/0.2866, allocations: 118 kB / 435.1 MB, free: 3.285 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001529/0.2868, allocations: 65.62 kB / 435.1 MB, free: 3.215 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.521e-05/0.2868, allocations: 15.88 kB / 435.1 MB, free: 3.191 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.2868, allocations: 3.984 kB / 435.1 MB, free: 3.188 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.2868, allocations: 0 / 435.1 MB, free: 3.188 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.66e-06/0.2868, allocations: 0 / 435.1 MB, free: 3.188 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001201/0.2869, allocations: 124.8 kB / 435.3 MB, free: 3.023 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.2869, allocations: 0 / 435.3 MB, free: 3.023 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.03e-05/0.287, allocations: 11.98 kB / 435.3 MB, free: 3.012 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.287, allocations: 4 kB / 435.3 MB, free: 3.008 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.029e-05/0.287, allocations: 7.938 kB / 435.3 MB, free: 3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.287, allocations: 0 / 435.3 MB, free: 3 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.287, allocations: 384 / 435.3 MB, free: 3 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000184/0.2872, allocations: 85.11 kB / 435.4 MB, free: 2.898 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.146e-05/0.2872, allocations: 7.938 kB / 435.4 MB, free: 2.891 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.915e-05/0.2872, allocations: 7.938 kB / 435.4 MB, free: 2.883 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.267e-05/0.2873, allocations: 8 kB / 435.4 MB, free: 2.875 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.021e-06/0.2873, allocations: 8 kB / 435.4 MB, free: 2.867 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.007e-06/0.2873, allocations: 0 / 435.4 MB, free: 2.867 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.066e-05/0.2873, allocations: 87.2 kB / 435.5 MB, free: 2.781 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2873, allocations: 0 / 435.5 MB, free: 2.781 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002089/0.2875, allocations: 8 kB / 435.5 MB, free: 2.773 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: 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.0001193/0.2877, allocations: 95.25 kB / 435.6 MB, free: 2.672 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000151/0.2878, allocations: 27.98 kB / 435.6 MB, free: 2.645 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.2878, allocations: 4.25 kB / 435.6 MB, free: 2.641 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.4e-07/0.2878, allocations: 3.938 kB / 435.6 MB, free: 2.637 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002886/0.2881, allocations: 31.05 kB / 435.6 MB, free: 2.609 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003432/0.2884, allocations: 121.7 kB / 435.8 MB, free: 2.465 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003335/0.2888, allocations: 0.6807 MB / 436.4 MB, free: 1.758 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.399e-05/0.2888, allocations: 0 / 436.4 MB, free: 1.758 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.264e-05/0.2888, allocations: 15.42 kB / 436.5 MB, free: 1.742 MB / 334.1 MB Notification: Performance of SimCode: time 3.4e-07/0.2888, allocations: 4 kB / 436.5 MB, free: 1.738 MB / 334.1 MB Notification: Performance of Templates: time 0.003395/0.2922, allocations: 446.1 kB / 436.9 MB, free: 1.305 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.makefile [Timeout 660] (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 & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep_res.mat","/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] Reference file matches [Calling sys.exit(0), Time elapsed: 4.980753518175334]