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.0008915/0.0008915, allocations: 84 kB / 21.43 MB, free: 3.129 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.00398/0.00398, allocations: 149.6 kB / 24.68 MB, free: 9.426 MB / 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 0.823/0.823, allocations: 173.4 MB / 201.2 MB, free: 9.445 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.232e-06/1.232e-06, allocations: 0 / 319.7 MB, free: 5.863 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.734e-05/1.858e-05, allocations: 2.281 kB / 319.7 MB, free: 5.859 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep): time 0.001553/0.001572, allocations: 1.407 MB / 321.1 MB, free: 4.438 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001697/0.001741, allocations: 39.84 kB / 321.1 MB, free: 4.398 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.516e-05/0.001797, allocations: 3.938 kB / 321.1 MB, free: 4.395 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.555e-05/0.001822, allocations: 3.938 kB / 321.1 MB, free: 4.391 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 2.984e-05/0.001852, allocations: 3.938 kB / 321.1 MB, free: 4.387 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002091/0.002061, allocations: 26.72 kB / 321.2 MB, free: 4.363 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 7.371e-05/0.002135, allocations: 27.92 kB / 321.2 MB, free: 4.336 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.849e-05/0.002223, allocations: 8 kB / 321.2 MB, free: 4.328 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.305e-05/0.002266, allocations: 11.98 kB / 321.2 MB, free: 4.316 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.303e-05/0.002299, allocations: 11.98 kB / 321.2 MB, free: 4.305 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.321e-05/0.002323, allocations: 7.938 kB / 321.2 MB, free: 4.297 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.592e-06/0.002329, allocations: 4 kB / 321.2 MB, free: 4.293 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.654e-05/0.002346, allocations: 11.92 kB / 321.3 MB, free: 4.281 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.028e-05/0.002366, allocations: 4 kB / 321.3 MB, free: 4.277 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 8.328e-05/0.002449, allocations: 35.88 kB / 321.3 MB, free: 4.242 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.603e-06/0.002451, allocations: 0 / 321.3 MB, free: 4.242 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.11e-07/0.002452, allocations: 0 / 321.3 MB, free: 4.242 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.299e-06/0.002456, allocations: 0 / 321.3 MB, free: 4.242 MB / 282.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.0003147/0.002771, allocations: 278.2 kB / 321.6 MB, free: 3.938 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.433e-05/0.002805, allocations: 8.031 kB / 321.6 MB, free: 3.93 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.636e-05/0.002831, allocations: 4.938 kB / 321.6 MB, free: 3.926 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001457/0.002977, allocations: 125.7 kB / 321.7 MB, free: 3.777 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.101e-05/0.002998, allocations: 8.375 kB / 321.7 MB, free: 3.77 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.604e-06/0.003006, allocations: 384 / 321.7 MB, free: 3.77 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002162/0.003222, allocations: 111.9 kB / 321.8 MB, free: 3.648 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.00323, allocations: 4.125 kB / 321.8 MB, free: 3.645 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.664e-06/0.003238, allocations: 384 / 321.8 MB, free: 3.645 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.429e-06/0.003243, allocations: 384 / 321.8 MB, free: 3.645 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.785e-05/0.0033, allocations: 27.92 kB / 321.9 MB, free: 3.617 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.448e-05/0.003385, allocations: 101.3 kB / 321.9 MB, free: 3.488 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.376e-05/0.003469, allocations: 46.56 kB / 322 MB, free: 3.434 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.886e-05/0.003507, allocations: 24.92 kB / 322 MB, free: 3.406 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.717e-06/0.003516, allocations: 0 / 322 MB, free: 3.406 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.871e-05/0.003535, allocations: 34.56 kB / 322.1 MB, free: 3.363 MB / 282.7 MB Notification: Performance of pre-optimization done (n=4): time 6.01e-07/0.003536, allocations: 3.938 kB / 322.1 MB, free: 3.359 MB / 282.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001714/0.003707, allocations: 73.66 kB / 322.1 MB, free: 3.281 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.035e-05/0.003747, allocations: 55.41 kB / 322.2 MB, free: 3.215 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.775e-05/0.003805, allocations: 117.7 kB / 322.3 MB, free: 3.09 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.476e-06/0.003813, allocations: 25.7 kB / 322.3 MB, free: 3.059 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.309e-05/0.003837, allocations: 80.14 kB / 322.4 MB, free: 2.977 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.568e-06/0.003846, allocations: 4 kB / 322.4 MB, free: 2.973 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.063e-05/0.003867, allocations: 17.72 kB / 322.4 MB, free: 2.949 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.102e-05/0.003938, allocations: 318.8 kB / 322.7 MB, free: 2.629 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.614e-06/0.003945, allocations: 3.938 kB / 322.7 MB, free: 2.625 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.36e-06/0.003951, allocations: 4 kB / 322.7 MB, free: 2.621 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.798e-05/0.003969, allocations: 12.8 kB / 322.8 MB, free: 2.605 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.00397, allocations: 0 / 322.8 MB, free: 2.605 MB / 282.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 3.717e-05/0.004008, allocations: 41.7 kB / 322.8 MB, free: 2.559 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.267e-06/0.004017, allocations: 4 kB / 322.8 MB, free: 2.555 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.486e-06/0.00402, allocations: 4.094 kB / 322.8 MB, free: 2.551 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.056e-05/0.004031, allocations: 0 / 322.8 MB, free: 2.551 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.003e-05/0.004071, allocations: 7.984 kB / 322.8 MB, free: 2.543 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.887e-06/0.004075, allocations: 0 / 322.8 MB, free: 2.543 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.824e-06/0.004083, allocations: 3.938 kB / 322.8 MB, free: 2.539 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.136e-06/0.004086, allocations: 3.984 kB / 322.8 MB, free: 2.535 MB / 282.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 4.738e-05/0.004133, allocations: 109.8 kB / 322.9 MB, free: 2.418 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.696e-05/0.0042, allocations: 69.56 kB / 323 MB, free: 2.344 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.477e-05/0.004215, allocations: 3.938 kB / 323 MB, free: 2.336 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-06/0.004216, allocations: 240 / 323 MB, free: 2.336 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.00422, allocations: 8 kB / 323 MB, free: 2.328 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.004225, allocations: 11.92 kB / 323 MB, free: 2.316 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.191e-05/0.004267, allocations: 101.3 kB / 323.1 MB, free: 2.188 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.71e-07/0.004267, allocations: 0 / 323.1 MB, free: 2.188 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.06e-05/0.004278, allocations: 4 kB / 323.1 MB, free: 2.184 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.202e-06/0.004279, allocations: 0 / 323.1 MB, free: 2.184 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.952e-06/0.004285, allocations: 4 kB / 323.1 MB, free: 2.18 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-07/0.004285, allocations: 0 / 323.1 MB, free: 2.18 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.71e-07/0.004286, allocations: 0 / 323.1 MB, free: 2.18 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.072e-05/0.004367, allocations: 100.9 kB / 323.2 MB, free: 2.062 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.002e-06/0.004373, allocations: 7.938 kB / 323.2 MB, free: 2.055 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.027e-06/0.004382, allocations: 4 kB / 323.2 MB, free: 2.051 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.154e-05/0.004393, allocations: 4 kB / 323.2 MB, free: 2.047 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.834e-06/0.004395, allocations: 0 / 323.2 MB, free: 2.047 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.667e-06/0.004399, allocations: 4 kB / 323.2 MB, free: 2.043 MB / 282.7 MB Notification: Performance of sorting global known variables: time 2.595e-05/0.004425, allocations: 83.27 kB / 323.3 MB, free: 1.961 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004425, allocations: 0 / 323.3 MB, free: 1.961 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001206/0.004545, allocations: 4 kB / 323.3 MB, free: 1.957 MB / 282.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.407e-05/0.004609, allocations: 103.2 kB / 323.4 MB, free: 1.844 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 7.467e-05/0.004684, allocations: 15.98 kB / 323.4 MB, free: 1.828 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.422e-06/0.004686, allocations: 4.062 kB / 323.4 MB, free: 1.824 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 4.01e-07/0.004686, allocations: 0 / 323.4 MB, free: 1.824 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000157/0.004843, allocations: 35.94 kB / 323.5 MB, free: 1.789 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001926/0.005036, allocations: 130.7 kB / 323.6 MB, free: 1.629 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.591e-05/0.005071, allocations: 67.28 kB / 323.7 MB, free: 1.543 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.959e-05/0.005091, allocations: 8.5 kB / 323.7 MB, free: 1.535 MB / 282.7 MB Notification: Performance of SimCode: time 3.91e-07/0.005091, allocations: 0 / 323.7 MB, free: 1.535 MB / 282.7 MB Notification: Performance of Templates: time 0.001244/0.006336, allocations: 0.5746 MB / 324.3 MB, free: 0.9609 MB / 282.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=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.6509135253727436]