Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.001029/0.001029, allocations: 75.59 kB / 21.18 MB, free: 3.391 MB / 18.57 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.001009/0.001009, allocations: 161.4 kB / 24.56 MB, free: 20 kB / 18.57 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.159/1.159, allocations: 177.1 MB / 205 MB, free: 5.285 MB / 186.7 MB " [Timeout remaining time 179] 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.BooleanSignals.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.242e-06/1.242e-06, allocations: 0 / 273 MB, free: 1.387 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.499e-05/2.623e-05, allocations: 2.312 kB / 273 MB, free: 1.383 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep): time 0.002048/0.002075, allocations: 1.474 MB / 274.4 MB, free: 15.9 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002302/0.002305, allocations: 35.84 kB / 274.5 MB, free: 15.86 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.376e-05/0.002379, allocations: 0 / 274.5 MB, free: 15.86 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 3.885e-05/0.002417, allocations: 3.938 kB / 274.5 MB, free: 15.86 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 4.441e-05/0.002462, allocations: 3.938 kB / 274.5 MB, free: 15.86 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002924/0.002754, allocations: 23.97 kB / 274.5 MB, free: 15.83 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000106/0.00286, allocations: 27.92 kB / 274.5 MB, free: 15.8 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001185/0.002979, allocations: 11.97 kB / 274.6 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.29e-05/0.003042, allocations: 23.92 kB / 274.6 MB, free: 15.77 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.978e-05/0.003081, allocations: 4 kB / 274.6 MB, free: 15.77 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.475e-05/0.003106, allocations: 4 kB / 274.6 MB, free: 15.76 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.696e-06/0.003115, allocations: 0 / 274.6 MB, free: 15.76 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.619e-05/0.003141, allocations: 11.98 kB / 274.6 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.086e-05/0.003172, allocations: 11.92 kB / 274.6 MB, free: 15.74 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 8.723e-05/0.003259, allocations: 15.98 kB / 274.6 MB, free: 15.72 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.335e-06/0.003261, allocations: 0 / 274.6 MB, free: 15.72 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.003262, allocations: 0 / 274.6 MB, free: 15.72 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.627e-06/0.003266, allocations: 0 / 274.6 MB, free: 15.72 MB / 266.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.0003791/0.003645, allocations: 368.6 kB / 275 MB, free: 15.32 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.003684, allocations: 16.03 kB / 275 MB, free: 15.31 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.949e-05/0.003723, allocations: 4.891 kB / 275 MB, free: 15.3 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001636/0.003887, allocations: 128.5 kB / 275.1 MB, free: 15.15 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.019e-05/0.003907, allocations: 4.375 kB / 275.1 MB, free: 15.15 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.162e-05/0.003919, allocations: 384 / 275.1 MB, free: 15.15 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002206/0.004139, allocations: 114.2 kB / 275.2 MB, free: 15.02 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.004149, allocations: 192 / 275.2 MB, free: 15.02 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.245e-06/0.004158, allocations: 4.375 kB / 275.3 MB, free: 15.02 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.554e-06/0.004165, allocations: 4.375 kB / 275.3 MB, free: 15.01 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.677e-05/0.004192, allocations: 7.938 kB / 275.3 MB, free: 15 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.703e-05/0.004289, allocations: 120.6 kB / 275.4 MB, free: 14.85 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.873e-05/0.004358, allocations: 47.02 kB / 275.4 MB, free: 14.79 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.065e-05/0.004388, allocations: 15.67 kB / 275.4 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.614e-06/0.004396, allocations: 0 / 275.4 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.26e-05/0.004419, allocations: 41.39 kB / 275.5 MB, free: 14.72 MB / 266.7 MB Notification: Performance of pre-optimization done (n=4): time 4.81e-07/0.004419, allocations: 0 / 275.5 MB, free: 14.72 MB / 266.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001301/0.004549, allocations: 57.62 kB / 275.5 MB, free: 14.66 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.002e-05/0.004589, allocations: 51.41 kB / 275.6 MB, free: 14.6 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.168e-05/0.004671, allocations: 173.9 kB / 275.8 MB, free: 14.41 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.256e-06/0.004679, allocations: 25.7 kB / 275.8 MB, free: 14.38 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.035e-05/0.004719, allocations: 126.9 kB / 275.9 MB, free: 14.25 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.248e-05/0.004732, allocations: 4 kB / 275.9 MB, free: 14.25 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.342e-05/0.004755, allocations: 23.36 kB / 275.9 MB, free: 14.21 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001048/0.00486, allocations: 492.1 kB / 276.4 MB, free: 13.72 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.087e-06/0.004869, allocations: 4.25 kB / 276.4 MB, free: 13.72 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.949e-06/0.004874, allocations: 0 / 276.4 MB, free: 13.72 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.294e-05/0.004897, allocations: 19.69 kB / 276.4 MB, free: 13.7 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.004899, allocations: 4.062 kB / 276.4 MB, free: 13.69 MB / 266.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.145e-05/0.004941, allocations: 41.62 kB / 276.5 MB, free: 13.64 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.094e-05/0.004951, allocations: 8 kB / 276.5 MB, free: 13.64 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.96e-06/0.004956, allocations: 0 / 276.5 MB, free: 13.64 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.402e-05/0.00497, allocations: 0 / 276.5 MB, free: 13.64 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.671e-05/0.005017, allocations: 0 / 276.5 MB, free: 13.64 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/0.005023, allocations: 7.938 kB / 276.5 MB, free: 13.63 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.164e-05/0.005035, allocations: 7.891 kB / 276.5 MB, free: 13.62 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.986e-06/0.005038, allocations: 0 / 276.5 MB, free: 13.62 MB / 266.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.151e-05/0.005099, allocations: 156.6 kB / 276.7 MB, free: 13.46 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.978e-05/0.005139, allocations: 49.72 kB / 276.7 MB, free: 13.4 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.497e-05/0.005164, allocations: 7.688 kB / 276.7 MB, free: 13.39 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-06/0.005165, allocations: 0 / 276.7 MB, free: 13.39 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.085e-06/0.005168, allocations: 0 / 276.7 MB, free: 13.39 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.115e-06/0.005171, allocations: 7.875 kB / 276.7 MB, free: 13.39 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.358e-05/0.005225, allocations: 116.6 kB / 276.8 MB, free: 13.24 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.005226, allocations: 0 / 276.8 MB, free: 13.24 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.759e-05/0.005243, allocations: 4 kB / 276.8 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.052e-06/0.005244, allocations: 0 / 276.8 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.893e-06/0.005251, allocations: 3.984 kB / 276.8 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.005252, allocations: 0 / 276.8 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.005253, allocations: 4 kB / 276.8 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.459e-05/0.005318, allocations: 84.38 kB / 276.9 MB, free: 13.12 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.156e-06/0.005326, allocations: 11.95 kB / 276.9 MB, free: 13.11 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.304e-05/0.005339, allocations: 4 kB / 276.9 MB, free: 13.11 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.126e-05/0.00535, allocations: 0 / 276.9 MB, free: 13.11 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.274e-06/0.005352, allocations: 0 / 276.9 MB, free: 13.11 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.976e-06/0.005355, allocations: 4 kB / 277 MB, free: 13.1 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.968e-05/0.005395, allocations: 131.2 kB / 277.1 MB, free: 12.97 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005395, allocations: 0 / 277.1 MB, free: 12.97 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001146/0.00551, allocations: 11.94 kB / 277.1 MB, free: 12.96 MB / 266.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 6.592e-05/0.005576, allocations: 103.2 kB / 277.2 MB, free: 12.85 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 7.803e-05/0.005654, allocations: 15.67 kB / 277.2 MB, free: 12.83 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.363e-06/0.005655, allocations: 4 kB / 277.2 MB, free: 12.83 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.11e-07/0.005655, allocations: 0 / 277.2 MB, free: 12.83 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001465/0.005802, allocations: 16.98 kB / 277.2 MB, free: 12.81 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002143/0.006016, allocations: 121 kB / 277.3 MB, free: 12.67 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.267e-05/0.006049, allocations: 55.34 kB / 277.4 MB, free: 12.59 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.438e-05/0.006063, allocations: 7.938 kB / 277.4 MB, free: 12.59 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.825e-05/0.006092, allocations: 12.56 kB / 277.4 MB, free: 12.57 MB / 266.7 MB Notification: Performance of SimCode: time 5.61e-07/0.006092, allocations: 0 / 277.4 MB, free: 12.57 MB / 266.7 MB Notification: Performance of Templates: time 0.001906/0.007998, allocations: 383.9 kB / 277.8 MB, free: 12.2 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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: 3.1149260201491416]