Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.001233/0.001233, allocations: 100.7 kB / 20.96 MB, free: 480 kB / 14.72 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.001255/0.001255, allocations: 146.5 kB / 24.24 MB, free: 3.527 MB / 14.72 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 1.336/1.336, allocations: 173.3 MB / 200.8 MB, free: 12.73 MB / 190.1 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: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.352e-06/1.352e-06, allocations: 0 / 267.3 MB, free: 10.2 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.253e-05/2.388e-05, allocations: 6.312 kB / 267.3 MB, free: 10.2 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep): time 0.002386/0.00241, allocations: 1.417 MB / 268.7 MB, free: 8.766 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001682/0.002578, allocations: 31.84 kB / 268.7 MB, free: 8.734 MB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.263e-05/0.002631, allocations: 7.938 kB / 268.8 MB, free: 8.727 MB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 2.485e-05/0.002656, allocations: 0 / 268.8 MB, free: 8.727 MB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 3.513e-05/0.002691, allocations: 11.88 kB / 268.8 MB, free: 8.715 MB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002076/0.002898, allocations: 23.97 kB / 268.8 MB, free: 8.691 MB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 8.299e-05/0.002981, allocations: 23.92 kB / 268.8 MB, free: 8.668 MB / 254.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.796e-05/0.003079, allocations: 19.97 kB / 268.8 MB, free: 8.648 MB / 254.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.812e-05/0.003127, allocations: 12 kB / 268.8 MB, free: 8.637 MB / 254.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.38e-05/0.003161, allocations: 7.984 kB / 268.9 MB, free: 8.629 MB / 254.1 MB Notification: Performance of NFPackage.collectConstants: time 2.022e-05/0.003181, allocations: 0 / 268.9 MB, free: 8.629 MB / 254.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.031e-05/0.003192, allocations: 4 kB / 268.9 MB, free: 8.625 MB / 254.1 MB Notification: Performance of NFScalarize.scalarize: time 2.102e-05/0.003213, allocations: 7.938 kB / 268.9 MB, free: 8.617 MB / 254.1 MB Notification: Performance of NFVerifyModel.verify: time 3.043e-05/0.003243, allocations: 15.97 kB / 268.9 MB, free: 8.602 MB / 254.1 MB Notification: Performance of NFConvertDAE.convert: time 8.602e-05/0.003329, allocations: 27.91 kB / 268.9 MB, free: 8.574 MB / 254.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.034e-06/0.003331, allocations: 4 kB / 268.9 MB, free: 8.57 MB / 254.1 MB Notification: Performance of FrontEnd: time 5.91e-07/0.003332, allocations: 0 / 268.9 MB, free: 8.57 MB / 254.1 MB Notification: Performance of Transformations before backend: time 3.216e-06/0.003335, allocations: 0 / 268.9 MB, free: 8.57 MB / 254.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.0003856/0.003721, allocations: 266.2 kB / 269.2 MB, free: 8.277 MB / 254.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.00376, allocations: 12.03 kB / 269.2 MB, free: 8.266 MB / 254.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.366e-05/0.003843, allocations: 12.88 kB / 269.2 MB, free: 8.254 MB / 254.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001754/0.004019, allocations: 113.7 kB / 269.3 MB, free: 8.117 MB / 254.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.055e-05/0.004039, allocations: 4.375 kB / 269.3 MB, free: 8.113 MB / 254.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.823e-05/0.004057, allocations: 8.359 kB / 269.3 MB, free: 8.105 MB / 254.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003411/0.004399, allocations: 123.8 kB / 269.4 MB, free: 7.973 MB / 254.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.194e-06/0.004406, allocations: 192 / 269.4 MB, free: 7.973 MB / 254.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.296e-06/0.004414, allocations: 384 / 269.4 MB, free: 7.973 MB / 254.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.261e-06/0.00442, allocations: 4.375 kB / 269.4 MB, free: 7.969 MB / 254.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001061/0.004526, allocations: 23.91 kB / 269.5 MB, free: 7.945 MB / 254.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001242/0.004651, allocations: 109.2 kB / 269.6 MB, free: 7.809 MB / 254.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001575/0.004808, allocations: 50.58 kB / 269.6 MB, free: 7.75 MB / 254.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.335e-05/0.004881, allocations: 20.89 kB / 269.6 MB, free: 7.727 MB / 254.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.41e-05/0.004896, allocations: 4 kB / 269.6 MB, free: 7.723 MB / 254.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.862e-05/0.004924, allocations: 34.56 kB / 269.7 MB, free: 7.68 MB / 254.1 MB Notification: Performance of pre-optimization done (n=4): time 8.71e-07/0.004925, allocations: 0 / 269.7 MB, free: 7.68 MB / 254.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002828/0.005208, allocations: 73.61 kB / 269.8 MB, free: 7.602 MB / 254.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.038e-05/0.005268, allocations: 59.41 kB / 269.8 MB, free: 7.531 MB / 254.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.71e-05/0.005365, allocations: 109.7 kB / 269.9 MB, free: 7.414 MB / 254.1 MB Notification: Performance of collectPreVariables (initialization): time 1.68e-05/0.005382, allocations: 25.7 kB / 269.9 MB, free: 7.383 MB / 254.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.277e-05/0.005435, allocations: 84.14 kB / 270 MB, free: 7.297 MB / 254.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.163e-05/0.005447, allocations: 3.938 kB / 270 MB, free: 7.293 MB / 254.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.543e-05/0.005482, allocations: 21.7 kB / 270.1 MB, free: 7.266 MB / 254.1 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.005633, allocations: 310.8 kB / 270.4 MB, free: 6.953 MB / 254.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.586e-06/0.005642, allocations: 4 kB / 270.4 MB, free: 6.949 MB / 254.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.06e-05/0.005652, allocations: 8 kB / 270.4 MB, free: 6.941 MB / 254.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.629e-05/0.005679, allocations: 8.859 kB / 270.4 MB, free: 6.93 MB / 254.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.00568, allocations: 0 / 270.4 MB, free: 6.93 MB / 254.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.364e-05/0.005744, allocations: 45.62 kB / 270.4 MB, free: 6.879 MB / 254.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.189e-05/0.005756, allocations: 4 kB / 270.4 MB, free: 6.875 MB / 254.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.005759, allocations: 0 / 270.4 MB, free: 6.875 MB / 254.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.005775, allocations: 4 kB / 270.4 MB, free: 6.871 MB / 254.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.402e-05/0.005819, allocations: 0 / 270.4 MB, free: 6.871 MB / 254.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.74e-06/0.005825, allocations: 4.094 kB / 270.4 MB, free: 6.867 MB / 254.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.724e-05/0.005852, allocations: 7.938 kB / 270.4 MB, free: 6.859 MB / 254.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.876e-06/0.005855, allocations: 0 / 270.4 MB, free: 6.859 MB / 254.1 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 8.43e-05/0.005939, allocations: 106.1 kB / 270.5 MB, free: 6.746 MB / 254.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001559/0.006095, allocations: 73.56 kB / 270.6 MB, free: 6.668 MB / 254.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.838e-05/0.006124, allocations: 11.69 kB / 270.6 MB, free: 6.652 MB / 254.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/0.006125, allocations: 0 / 270.6 MB, free: 6.652 MB / 254.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/0.006128, allocations: 0 / 270.6 MB, free: 6.652 MB / 254.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.177e-06/0.006132, allocations: 4.172 kB / 270.6 MB, free: 6.648 MB / 254.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.229e-05/0.006214, allocations: 101.3 kB / 270.7 MB, free: 6.52 MB / 254.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.006215, allocations: 4 kB / 270.7 MB, free: 6.516 MB / 254.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.211e-05/0.006247, allocations: 4 kB / 270.7 MB, free: 6.512 MB / 254.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.908e-06/0.006251, allocations: 3.984 kB / 270.7 MB, free: 6.508 MB / 254.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.147e-06/0.00626, allocations: 3.984 kB / 270.7 MB, free: 6.504 MB / 254.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.006261, allocations: 0 / 270.7 MB, free: 6.504 MB / 254.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-07/0.006262, allocations: 0 / 270.7 MB, free: 6.504 MB / 254.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001753/0.006437, allocations: 89.05 kB / 270.8 MB, free: 6.398 MB / 254.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.012e-05/0.006447, allocations: 7.953 kB / 270.8 MB, free: 6.391 MB / 254.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.544e-05/0.006463, allocations: 4 kB / 270.8 MB, free: 6.387 MB / 254.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.997e-05/0.006493, allocations: 4 kB / 270.8 MB, free: 6.383 MB / 254.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.404e-06/0.006495, allocations: 3.938 kB / 270.9 MB, free: 6.379 MB / 254.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.998e-06/0.006499, allocations: 7.938 kB / 270.9 MB, free: 6.371 MB / 254.1 MB Notification: Performance of sorting global known variables: time 5.384e-05/0.006553, allocations: 83.27 kB / 270.9 MB, free: 6.289 MB / 254.1 MB Notification: Performance of sort global known variables: time 6e-08/0.006553, allocations: 0 / 270.9 MB, free: 6.289 MB / 254.1 MB Notification: Performance of remove unused functions: time 0.0001753/0.006728, allocations: 8 kB / 270.9 MB, free: 6.281 MB / 254.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.0001191/0.006847, allocations: 102.3 kB / 271 MB, free: 6.172 MB / 254.1 MB Notification: Performance of simCode: created initialization part: time 0.0001259/0.006973, allocations: 19.98 kB / 271.1 MB, free: 6.152 MB / 254.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.006975, allocations: 0 / 271.1 MB, free: 6.152 MB / 254.1 MB Notification: Performance of simCode: created simulation system equations: time 4.81e-07/0.006976, allocations: 0 / 271.1 MB, free: 6.152 MB / 254.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002424/0.007218, allocations: 25.42 kB / 271.1 MB, free: 6.125 MB / 254.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003065/0.007524, allocations: 111.3 kB / 271.2 MB, free: 5.992 MB / 254.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.532e-05/0.00759, allocations: 67.34 kB / 271.3 MB, free: 5.906 MB / 254.1 MB Notification: Performance of simCode: alias equations: time 1.36e-05/0.007603, allocations: 4 kB / 271.3 MB, free: 5.902 MB / 254.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.319e-05/0.007637, allocations: 12.48 kB / 271.3 MB, free: 5.891 MB / 254.1 MB Notification: Performance of SimCode: time 3.01e-07/0.007637, allocations: 0 / 271.3 MB, free: 5.891 MB / 254.1 MB Notification: Performance of Templates: time 0.00257/0.01021, allocations: 385 kB / 271.7 MB, free: 5.516 MB / 254.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedStep/TickBasedStep.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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: 3.6916333362460136]