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.00112/0.00112, allocations: 75.91 kB / 21.18 MB, free: 3.395 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.001124/0.001124, allocations: 145.5 kB / 24.54 MB, free: 40 kB / 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 1.005/1.005, allocations: 173.3 MB / 201.1 MB, free: 9.336 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: 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.603e-06/1.603e-06, allocations: 0 / 268 MB, free: 6.445 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.851e-05/3.012e-05, allocations: 6.312 kB / 268 MB, free: 6.438 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep): time 0.002176/0.002206, allocations: 1.46 MB / 269.5 MB, free: 4.965 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002315/0.002438, allocations: 35.78 kB / 269.5 MB, free: 4.93 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.466e-05/0.002512, allocations: 4 kB / 269.5 MB, free: 4.926 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.653e-05/0.002549, allocations: 0 / 269.5 MB, free: 4.926 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 4.71e-05/0.002596, allocations: 7.938 kB / 269.5 MB, free: 4.918 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003396/0.002936, allocations: 23.97 kB / 269.5 MB, free: 4.895 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001091/0.003045, allocations: 23.92 kB / 269.5 MB, free: 4.871 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000129/0.003174, allocations: 15.97 kB / 269.6 MB, free: 4.855 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.258e-05/0.003246, allocations: 15.98 kB / 269.6 MB, free: 4.84 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.946e-05/0.003296, allocations: 3.938 kB / 269.6 MB, free: 4.836 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.603e-05/0.003322, allocations: 4 kB / 269.6 MB, free: 4.832 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.026e-05/0.003332, allocations: 4 kB / 269.6 MB, free: 4.828 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.23e-05/0.003354, allocations: 4 kB / 269.6 MB, free: 4.824 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.781e-05/0.003392, allocations: 15.97 kB / 269.6 MB, free: 4.809 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001238/0.003516, allocations: 23.86 kB / 269.6 MB, free: 4.785 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.003519, allocations: 0 / 269.6 MB, free: 4.785 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.00352, allocations: 0 / 269.6 MB, free: 4.785 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.003526, allocations: 0 / 269.6 MB, free: 4.785 MB / 250.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.0004516/0.003978, allocations: 372.6 kB / 270 MB, free: 4.383 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.004022, allocations: 8.031 kB / 270 MB, free: 4.375 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.12e-05/0.004063, allocations: 4.938 kB / 270 MB, free: 4.371 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001689/0.004232, allocations: 124.6 kB / 270.1 MB, free: 4.223 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.177e-05/0.004254, allocations: 384 / 270.1 MB, free: 4.223 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.375e-05/0.004267, allocations: 4.375 kB / 270.1 MB, free: 4.219 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002462/0.004514, allocations: 114.2 kB / 270.2 MB, free: 4.09 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.004524, allocations: 192 / 270.2 MB, free: 4.09 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.03e-05/0.004534, allocations: 384 / 270.2 MB, free: 4.09 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.777e-06/0.004543, allocations: 4.312 kB / 270.3 MB, free: 4.086 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.09e-05/0.004574, allocations: 11.94 kB / 270.3 MB, free: 4.074 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001142/0.004688, allocations: 120.5 kB / 270.4 MB, free: 3.922 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.37e-05/0.004762, allocations: 39.11 kB / 270.4 MB, free: 3.871 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.657e-05/0.004798, allocations: 23.7 kB / 270.4 MB, free: 3.844 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.057e-06/0.004807, allocations: 4 kB / 270.4 MB, free: 3.84 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.404e-05/0.004831, allocations: 33.39 kB / 270.5 MB, free: 3.797 MB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 7.72e-07/0.004832, allocations: 0 / 270.5 MB, free: 3.797 MB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001521/0.004984, allocations: 53.62 kB / 270.5 MB, free: 3.738 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.9e-05/0.005033, allocations: 55.59 kB / 270.6 MB, free: 3.672 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.11e-05/0.005124, allocations: 169.8 kB / 270.8 MB, free: 3.488 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.085e-05/0.005135, allocations: 25.7 kB / 270.8 MB, free: 3.457 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.199e-05/0.005177, allocations: 134.9 kB / 270.9 MB, free: 3.32 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.204e-05/0.005189, allocations: 0 / 270.9 MB, free: 3.32 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.646e-05/0.005216, allocations: 23.36 kB / 270.9 MB, free: 3.289 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.005342, allocations: 496.1 kB / 271.4 MB, free: 2.793 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.054e-05/0.005352, allocations: 4 kB / 271.4 MB, free: 2.789 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.574e-06/0.00536, allocations: 4 kB / 271.4 MB, free: 2.785 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.032e-05/0.00539, allocations: 15.62 kB / 271.4 MB, free: 2.766 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.005393, allocations: 0 / 271.4 MB, free: 2.766 MB / 250.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.009e-05/0.005453, allocations: 41.94 kB / 271.5 MB, free: 2.719 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.005469, allocations: 6.969 kB / 271.5 MB, free: 2.715 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.179e-06/0.005475, allocations: 0 / 271.5 MB, free: 2.715 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.793e-05/0.005492, allocations: 3.984 kB / 271.5 MB, free: 2.711 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.773e-05/0.00555, allocations: 8 kB / 271.5 MB, free: 2.703 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.142e-06/0.005556, allocations: 4.094 kB / 271.5 MB, free: 2.699 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.478e-05/0.005571, allocations: 3.938 kB / 271.5 MB, free: 2.695 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.857e-06/0.005575, allocations: 0 / 271.5 MB, free: 2.695 MB / 250.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 7.412e-05/0.005649, allocations: 156.6 kB / 271.7 MB, free: 2.531 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.538e-05/0.005704, allocations: 53.58 kB / 271.7 MB, free: 2.473 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.82e-05/0.005733, allocations: 7.688 kB / 271.7 MB, free: 2.461 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.005735, allocations: 0 / 271.7 MB, free: 2.461 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.005738, allocations: 0 / 271.7 MB, free: 2.461 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.005742, allocations: 11.88 kB / 271.7 MB, free: 2.449 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.561e-05/0.005798, allocations: 108.6 kB / 271.8 MB, free: 2.309 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.0058, allocations: 8 kB / 271.8 MB, free: 2.301 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.909e-05/0.005829, allocations: 0 / 271.8 MB, free: 2.301 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.005831, allocations: 0 / 271.8 MB, free: 2.301 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.314e-06/0.005838, allocations: 4 kB / 271.8 MB, free: 2.297 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.00584, allocations: 0 / 271.8 MB, free: 2.297 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.00584, allocations: 0 / 271.8 MB, free: 2.297 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.193e-05/0.005922, allocations: 100.3 kB / 271.9 MB, free: 2.176 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.031e-05/0.005933, allocations: 3.953 kB / 272 MB, free: 2.172 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.448e-05/0.005947, allocations: 0 / 272 MB, free: 2.172 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.427e-05/0.005961, allocations: 4 kB / 272 MB, free: 2.168 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.946e-06/0.005964, allocations: 0 / 272 MB, free: 2.168 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.365e-06/0.005967, allocations: 0 / 272 MB, free: 2.168 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.341e-05/0.00601, allocations: 135.2 kB / 272.1 MB, free: 2.035 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00601, allocations: 0 / 272.1 MB, free: 2.035 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001194/0.00613, allocations: 4 kB / 272.1 MB, free: 2.031 MB / 250.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 8.694e-05/0.006217, allocations: 99.19 kB / 272.2 MB, free: 1.922 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 8.932e-05/0.006306, allocations: 15.69 kB / 272.2 MB, free: 1.902 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.006308, allocations: 0 / 272.2 MB, free: 1.902 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 8.21e-07/0.006309, allocations: 0 / 272.2 MB, free: 1.902 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001717/0.00648, allocations: 25.36 kB / 272.2 MB, free: 1.875 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002487/0.006729, allocations: 116.9 kB / 272.3 MB, free: 1.734 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.288e-05/0.006762, allocations: 59.34 kB / 272.4 MB, free: 1.656 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 1.487e-05/0.006777, allocations: 0 / 272.4 MB, free: 1.656 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.774e-05/0.006804, allocations: 12.5 kB / 272.4 MB, free: 1.645 MB / 250.7 MB Notification: Performance of SimCode: time 5.31e-07/0.006805, allocations: 0 / 272.4 MB, free: 1.645 MB / 250.7 MB Notification: Performance of Templates: time 0.002063/0.008868, allocations: 384.8 kB / 272.8 MB, free: 1.27 MB / 250.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.856225356925279]