Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009557/0.0009557, allocations: 91.5 kB / 21.2 MB, free: 3.371 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009289/0.0009289, allocations: 156.5 kB / 24.55 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9955/0.9955, allocations: 177 MB / 204.8 MB, free: 5.211 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.513e-06/1.513e-06, allocations: 0 / 272.9 MB, free: 1.293 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.955e-05/2.106e-05, allocations: 2.312 kB / 272.9 MB, free: 1.289 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.002367/0.002388, allocations: 1.935 MB / 274.8 MB, free: 15.34 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001478/0.003867, allocations: 1.265 MB / 276.1 MB, free: 14.06 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001126/0.003979, allocations: 7.938 kB / 276.1 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002945/0.004274, allocations: 63.67 kB / 276.2 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003119/0.004586, allocations: 139.3 kB / 276.3 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004687/0.005054, allocations: 231 kB / 276.5 MB, free: 13.63 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001892/0.005244, allocations: 183.5 kB / 276.7 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.075e-05/0.005334, allocations: 21.8 kB / 276.7 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001105/0.005445, allocations: 95.73 kB / 276.8 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.887e-05/0.005534, allocations: 75.78 kB / 276.9 MB, free: 13.26 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.995e-05/0.005554, allocations: 8 kB / 276.9 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000118/0.005672, allocations: 75.88 kB / 277 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.297e-05/0.005735, allocations: 51.77 kB / 277 MB, free: 13.13 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.671e-05/0.005781, allocations: 39.86 kB / 277.1 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002359/0.006017, allocations: 191.2 kB / 277.3 MB, free: 12.9 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.634e-06/0.00602, allocations: 0 / 277.3 MB, free: 12.9 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.92e-07/0.00602, allocations: 0 / 277.3 MB, free: 12.9 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.038e-06/0.006025, allocations: 4 kB / 277.3 MB, free: 12.9 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.001751/0.007776, allocations: 0.5749 MB / 277.8 MB, free: 12.28 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.882e-05/0.007825, allocations: 11.98 kB / 277.9 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001021/0.007927, allocations: 28.8 kB / 277.9 MB, free: 12.24 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003733/0.0083, allocations: 223.6 kB / 278.1 MB, free: 12 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.772e-05/0.008328, allocations: 8.312 kB / 278.1 MB, free: 11.99 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.785e-05/0.008346, allocations: 8.312 kB / 278.1 MB, free: 11.98 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003688/0.008714, allocations: 161.1 kB / 278.3 MB, free: 11.8 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.008725, allocations: 4.188 kB / 278.3 MB, free: 11.8 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.329e-05/0.008738, allocations: 384 / 278.3 MB, free: 11.8 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.048e-05/0.008749, allocations: 3.938 kB / 278.3 MB, free: 11.79 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.348e-05/0.008822, allocations: 19.98 kB / 278.3 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005405/0.009363, allocations: 370.9 kB / 278.7 MB, free: 11.37 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001625/0.009525, allocations: 113.3 kB / 278.8 MB, free: 11.22 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.905e-05/0.009574, allocations: 47.05 kB / 278.8 MB, free: 11.16 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.284e-05/0.009597, allocations: 7.938 kB / 278.8 MB, free: 11.15 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001047/0.009702, allocations: 77.05 kB / 278.9 MB, free: 11.06 MB / 266.7 MB Notification: Performance of pre-optimization done (n=9): time 1.914e-06/0.009704, allocations: 0 / 278.9 MB, free: 11.06 MB / 266.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002342/0.009938, allocations: 125.5 kB / 279 MB, free: 10.93 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.134e-05/0.009989, allocations: 110.7 kB / 279.1 MB, free: 10.8 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002128/0.0102, allocations: 328.6 kB / 279.5 MB, free: 10.46 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.66e-05/0.01022, allocations: 33.7 kB / 279.5 MB, free: 10.42 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.626e-05/0.0103, allocations: 182.8 kB / 279.7 MB, free: 10.24 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.229e-05/0.01033, allocations: 15.91 kB / 279.7 MB, free: 10.22 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.828e-05/0.01037, allocations: 31.36 kB / 279.7 MB, free: 10.18 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001162/0.01048, allocations: 0.5079 MB / 280.2 MB, free: 9.664 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.317e-05/0.0105, allocations: 4 kB / 280.2 MB, free: 9.66 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.323e-05/0.01056, allocations: 68.75 kB / 280.3 MB, free: 9.574 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.497e-05/0.01061, allocations: 39.38 kB / 280.3 MB, free: 9.527 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.01062, allocations: 3.938 kB / 280.3 MB, free: 9.523 MB / 266.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001085/0.01072, allocations: 97.5 kB / 280.4 MB, free: 9.422 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/0.01074, allocations: 4 kB / 280.4 MB, free: 9.418 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.01074, allocations: 0 / 280.4 MB, free: 9.418 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.169e-05/0.01076, allocations: 0 / 280.4 MB, free: 9.418 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.473e-05/0.01084, allocations: 15.94 kB / 280.5 MB, free: 9.402 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.01085, allocations: 3.984 kB / 280.5 MB, free: 9.398 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.253e-05/0.01089, allocations: 11.94 kB / 280.5 MB, free: 9.387 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.171e-06/0.0109, allocations: 3.938 kB / 280.5 MB, free: 9.383 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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.699e-05/0.01098, allocations: 164.6 kB / 280.6 MB, free: 9.211 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.327e-05/0.01105, allocations: 77.45 kB / 280.7 MB, free: 9.129 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001475/0.01119, allocations: 95.44 kB / 280.8 MB, free: 9.027 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.0112, allocations: 4 kB / 280.8 MB, free: 9.023 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.0112, allocations: 0 / 280.8 MB, free: 9.023 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.01121, allocations: 0 / 280.8 MB, free: 9.023 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001413/0.01135, allocations: 196.5 kB / 281 MB, free: 8.797 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.01135, allocations: 320 / 281 MB, free: 8.797 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.965e-05/0.0114, allocations: 19.94 kB / 281 MB, free: 8.777 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.0114, allocations: 3.938 kB / 281 MB, free: 8.773 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.588e-06/0.01141, allocations: 4.062 kB / 281 MB, free: 8.77 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.01141, allocations: 7.984 kB / 281 MB, free: 8.762 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.01141, allocations: 0 / 281 MB, free: 8.762 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001448/0.01156, allocations: 171.8 kB / 281.2 MB, free: 8.562 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.172e-05/0.01161, allocations: 35.78 kB / 281.2 MB, free: 8.527 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.372e-05/0.01163, allocations: 7.984 kB / 281.2 MB, free: 8.52 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.434e-05/0.01167, allocations: 4 kB / 281.3 MB, free: 8.516 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.74e-05/0.01172, allocations: 7.984 kB / 281.3 MB, free: 8.508 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.559e-05/0.01173, allocations: 8 kB / 281.3 MB, free: 8.5 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001277/0.01186, allocations: 225.1 kB / 281.5 MB, free: 8.281 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01186, allocations: 0 / 281.5 MB, free: 8.281 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000171/0.01203, allocations: 31.94 kB / 281.5 MB, free: 8.25 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0008638/0.01289, allocations: 401.3 kB / 281.9 MB, free: 7.969 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001326/0.01303, allocations: 55.59 kB / 282 MB, free: 7.91 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.01303, allocations: 0 / 282 MB, free: 7.91 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.288e-05/0.01307, allocations: 31.61 kB / 282 MB, free: 7.875 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002833/0.01336, allocations: 61.7 kB / 282.1 MB, free: 7.809 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004972/0.01385, allocations: 353.1 kB / 282.4 MB, free: 7.43 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.657e-05/0.0139, allocations: 79.92 kB / 282.5 MB, free: 7.332 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.323e-05/0.01395, allocations: 29.86 kB / 282.5 MB, free: 7.305 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.252e-05/0.014, allocations: 24.5 kB / 282.5 MB, free: 7.281 MB / 266.7 MB Notification: Performance of SimCode: time 5.01e-07/0.014, allocations: 0 / 282.5 MB, free: 7.281 MB / 266.7 MB Notification: Performance of Templates: time 0.00485/0.01885, allocations: 3.163 MB / 285.7 MB, free: 4.152 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.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.9149232232011855]