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.001194/0.001194, allocations: 87.62 kB / 21.44 MB, free: 3.129 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.005913/0.005913, allocations: 160 kB / 24.7 MB, free: 9.43 MB / 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 0.8861/0.8861, allocations: 177.1 MB / 205 MB, free: 5.734 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.112e-06/1.112e-06, allocations: 0 / 325.8 MB, free: 15.44 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.167e-05/2.278e-05, allocations: 2.281 kB / 325.8 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep): time 0.001729/0.001751, allocations: 1.442 MB / 327.3 MB, free: 13.98 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001715/0.001923, allocations: 35.84 kB / 327.3 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.572e-05/0.001979, allocations: 0 / 327.3 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.735e-05/0.002006, allocations: 3.938 kB / 327.3 MB, free: 13.94 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 3.298e-05/0.002039, allocations: 0 / 327.3 MB, free: 13.94 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002164/0.002255, allocations: 19.97 kB / 327.3 MB, free: 13.92 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.615e-05/0.002331, allocations: 31.92 kB / 327.4 MB, free: 13.89 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.946e-05/0.002421, allocations: 3.984 kB / 327.4 MB, free: 13.89 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.433e-05/0.002465, allocations: 19.92 kB / 327.4 MB, free: 13.87 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.495e-05/0.0025, allocations: 15.98 kB / 327.4 MB, free: 13.85 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.311e-05/0.002523, allocations: 0 / 327.4 MB, free: 13.85 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.686e-06/0.002532, allocations: 4 kB / 327.4 MB, free: 13.85 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.55e-05/0.002547, allocations: 4 kB / 327.4 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.333e-05/0.002571, allocations: 15.86 kB / 327.4 MB, free: 13.83 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.291e-05/0.002654, allocations: 27.95 kB / 327.4 MB, free: 13.8 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.144e-06/0.002656, allocations: 0 / 327.4 MB, free: 13.8 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.002657, allocations: 0 / 327.4 MB, free: 13.8 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.148e-06/0.002661, allocations: 0 / 327.4 MB, free: 13.8 MB / 298.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.0003295/0.002991, allocations: 270.3 kB / 327.7 MB, free: 13.5 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.283e-05/0.003023, allocations: 12.03 kB / 327.7 MB, free: 13.49 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.796e-05/0.003051, allocations: 4.938 kB / 327.7 MB, free: 13.49 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000175/0.003226, allocations: 129.6 kB / 327.9 MB, free: 13.34 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.096e-05/0.003247, allocations: 4.375 kB / 327.9 MB, free: 13.33 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.087e-06/0.003256, allocations: 4.375 kB / 327.9 MB, free: 13.33 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002388/0.003495, allocations: 115.8 kB / 328 MB, free: 13.2 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.564e-06/0.003503, allocations: 192 / 328 MB, free: 13.2 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.787e-06/0.003512, allocations: 4.312 kB / 328 MB, free: 13.2 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.988e-06/0.003516, allocations: 384 / 328 MB, free: 13.2 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.227e-05/0.003578, allocations: 31.86 kB / 328 MB, free: 13.17 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.288e-05/0.003671, allocations: 101.3 kB / 328.1 MB, free: 13.04 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001004/0.003771, allocations: 50.55 kB / 328.2 MB, free: 12.98 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.194e-05/0.003813, allocations: 24.92 kB / 328.2 MB, free: 12.95 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.568e-06/0.003823, allocations: 0 / 328.2 MB, free: 12.95 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.004e-05/0.003843, allocations: 34.56 kB / 328.2 MB, free: 12.91 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 8.72e-07/0.003843, allocations: 0 / 328.2 MB, free: 12.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001755/0.004019, allocations: 77.56 kB / 328.3 MB, free: 12.83 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.691e-05/0.004066, allocations: 55.41 kB / 328.3 MB, free: 12.76 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.768e-05/0.004123, allocations: 105.8 kB / 328.5 MB, free: 12.65 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.039e-05/0.004134, allocations: 33.7 kB / 328.5 MB, free: 12.61 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.561e-05/0.004159, allocations: 84.12 kB / 328.6 MB, free: 12.52 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.092e-05/0.00417, allocations: 4 kB / 328.6 MB, free: 12.52 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.343e-05/0.004194, allocations: 17.7 kB / 328.6 MB, free: 12.5 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.294e-05/0.004267, allocations: 310.8 kB / 328.9 MB, free: 12.18 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.101e-05/0.004278, allocations: 8 kB / 328.9 MB, free: 12.18 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.139e-06/0.004283, allocations: 0 / 328.9 MB, free: 12.18 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.128e-05/0.004304, allocations: 12.8 kB / 328.9 MB, free: 12.16 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.004306, allocations: 0 / 328.9 MB, free: 12.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.218e-05/0.004348, allocations: 45.75 kB / 329 MB, free: 12.11 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.164e-05/0.00436, allocations: 4 kB / 329 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/0.004366, allocations: 4 kB / 329 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.166e-05/0.004378, allocations: 0 / 329 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.319e-05/0.004421, allocations: 3.938 kB / 329 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/0.004426, allocations: 0 / 329 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.548e-06/0.004436, allocations: 8.188 kB / 329 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.47e-06/0.004441, allocations: 4 kB / 329 MB, free: 12.09 MB / 298.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 5.401e-05/0.004495, allocations: 113.8 kB / 329.1 MB, free: 11.96 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.833e-05/0.004564, allocations: 61.56 kB / 329.2 MB, free: 11.9 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.844e-05/0.004582, allocations: 15.72 kB / 329.2 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-06/0.004583, allocations: 240 / 329.2 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.004588, allocations: 0 / 329.2 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.004592, allocations: 7.922 kB / 329.2 MB, free: 11.87 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.791e-05/0.00464, allocations: 101.3 kB / 329.3 MB, free: 11.74 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.004641, allocations: 0 / 329.3 MB, free: 11.74 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.272e-05/0.004654, allocations: 4 kB / 329.3 MB, free: 11.74 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.252e-06/0.004655, allocations: 0 / 329.3 MB, free: 11.74 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.28e-06/0.00466, allocations: 0 / 329.3 MB, free: 11.74 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.004662, allocations: 3.984 kB / 329.3 MB, free: 11.73 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.004663, allocations: 0 / 329.3 MB, free: 11.73 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.401e-05/0.004747, allocations: 101 kB / 329.4 MB, free: 11.62 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.034e-06/0.004754, allocations: 7.953 kB / 329.4 MB, free: 11.61 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.063e-05/0.004765, allocations: 7.938 kB / 329.4 MB, free: 11.6 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.099e-05/0.004776, allocations: 0 / 329.4 MB, free: 11.6 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.327e-06/0.004779, allocations: 4 kB / 329.4 MB, free: 11.6 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.715e-06/0.004782, allocations: 0 / 329.4 MB, free: 11.6 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.516e-05/0.004807, allocations: 83.27 kB / 329.5 MB, free: 11.52 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004807, allocations: 0 / 329.5 MB, free: 11.52 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001173/0.004924, allocations: 4 kB / 329.5 MB, free: 11.51 MB / 298.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 7.212e-05/0.004996, allocations: 103.2 kB / 329.6 MB, free: 11.4 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 7.915e-05/0.005075, allocations: 23.98 kB / 329.6 MB, free: 11.38 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.452e-06/0.005077, allocations: 0 / 329.6 MB, free: 11.38 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.02e-07/0.005078, allocations: 0 / 329.6 MB, free: 11.38 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001557/0.005233, allocations: 23.92 kB / 329.6 MB, free: 11.36 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002093/0.005443, allocations: 139.1 kB / 329.8 MB, free: 11.19 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.608e-05/0.005479, allocations: 67.28 kB / 329.8 MB, free: 11.1 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.331e-05/0.005502, allocations: 12.5 kB / 329.8 MB, free: 11.09 MB / 298.7 MB Notification: Performance of SimCode: time 2.6e-07/0.005502, allocations: 0 / 329.8 MB, free: 11.09 MB / 298.7 MB Notification: Performance of Templates: time 0.001312/0.006814, allocations: 0.5859 MB / 330.4 MB, free: 10.51 MB / 298.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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 4.042046584188938]