Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.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.001028/0.001028, allocations: 80.72 kB / 22.21 MB, free: 2.289 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.001618/0.001618, allocations: 147.2 kB / 25.59 MB, free: 8.906 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.9557/0.9557, allocations: 173.4 MB / 202.2 MB, free: 8.27 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.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 269.2 MB, free: 9.758 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.524e-05/1.686e-05, allocations: 2.312 kB / 269.2 MB, free: 9.754 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.006734/0.00675, allocations: 1.905 MB / 271.1 MB, free: 7.852 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001529/0.008279, allocations: 1.095 MB / 272.2 MB, free: 6.75 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003115/0.01139, allocations: 5.219 kB / 272.2 MB, free: 6.746 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002734/0.01167, allocations: 67.55 kB / 272.3 MB, free: 6.68 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002318/0.0119, allocations: 96.64 kB / 272.4 MB, free: 6.586 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005519/0.01245, allocations: 257.1 kB / 272.6 MB, free: 6.336 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002044/0.01266, allocations: 171.5 kB / 272.8 MB, free: 6.168 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.88e-05/0.01275, allocations: 23.52 kB / 272.8 MB, free: 6.145 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001292/0.01287, allocations: 103.7 kB / 272.9 MB, free: 6.043 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.799e-05/0.01297, allocations: 71.78 kB / 273 MB, free: 5.973 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.003e-05/0.01299, allocations: 12 kB / 273 MB, free: 5.961 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001303/0.01312, allocations: 64.56 kB / 273 MB, free: 5.898 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.64e-05/0.01319, allocations: 51.84 kB / 273.1 MB, free: 5.848 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.168e-05/0.01324, allocations: 44.28 kB / 273.1 MB, free: 5.805 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002411/0.01348, allocations: 180.1 kB / 273.3 MB, free: 5.629 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.974e-06/0.01348, allocations: 0 / 273.3 MB, free: 5.629 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.2e-07/0.01348, allocations: 0.6875 kB / 273.3 MB, free: 5.629 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.346e-06/0.01349, allocations: 3.938 kB / 273.3 MB, free: 5.625 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0005133/0.014, allocations: 0.564 MB / 273.9 MB, free: 5.02 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.144e-05/0.01403, allocations: 12.03 kB / 273.9 MB, free: 5.008 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.997e-05/0.01408, allocations: 31.34 kB / 273.9 MB, free: 4.98 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00325/0.01733, allocations: 219.6 kB / 274.1 MB, free: 4.742 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.102e-05/0.01735, allocations: 8.312 kB / 274.2 MB, free: 4.734 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.195e-05/0.01737, allocations: 4.375 kB / 274.2 MB, free: 4.73 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002246/0.01759, allocations: 150.8 kB / 274.3 MB, free: 4.555 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/0.0176, allocations: 7.938 kB / 274.3 MB, free: 4.547 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.009e-05/0.01761, allocations: 4.5 kB / 274.3 MB, free: 4.543 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.662e-06/0.01762, allocations: 4 kB / 274.3 MB, free: 4.539 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.415e-05/0.01766, allocations: 19.92 kB / 274.3 MB, free: 4.52 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003452/0.01801, allocations: 315.7 kB / 274.6 MB, free: 4.176 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001439/0.01815, allocations: 117.3 kB / 274.8 MB, free: 4.023 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.055e-05/0.0182, allocations: 42.98 kB / 274.8 MB, free: 3.969 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.916e-05/0.01822, allocations: 4 kB / 274.8 MB, free: 3.965 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001193/0.01834, allocations: 76.97 kB / 274.9 MB, free: 3.875 MB / 250.7 MB Notification: Performance of pre-optimization done (n=9): time 1.663e-06/0.01834, allocations: 0 / 274.9 MB, free: 3.875 MB / 250.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002321/0.01857, allocations: 113.5 kB / 275 MB, free: 3.758 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.502e-05/0.01863, allocations: 110.7 kB / 275.1 MB, free: 3.625 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002259/0.01886, allocations: 316.2 kB / 275.4 MB, free: 3.297 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.45e-05/0.01887, allocations: 25.7 kB / 275.4 MB, free: 3.266 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.752e-05/0.01896, allocations: 182.8 kB / 275.6 MB, free: 3.082 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.413e-05/0.01898, allocations: 23.83 kB / 275.6 MB, free: 3.059 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.371e-05/0.01903, allocations: 35.56 kB / 275.7 MB, free: 3.016 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.01916, allocations: 0.5079 MB / 276.2 MB, free: 2.496 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.798e-05/0.01918, allocations: 4 kB / 276.2 MB, free: 2.492 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.58e-05/0.01923, allocations: 68.73 kB / 276.3 MB, free: 2.406 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.445e-05/0.01928, allocations: 47.55 kB / 276.3 MB, free: 2.352 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.01928, allocations: 3.938 kB / 276.3 MB, free: 2.348 MB / 250.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001025/0.01939, allocations: 77.53 kB / 276.4 MB, free: 2.266 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.06e-05/0.0194, allocations: 4 kB / 276.4 MB, free: 2.262 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.0194, allocations: 4 kB / 276.4 MB, free: 2.258 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.135e-06/0.01941, allocations: 4.062 kB / 276.4 MB, free: 2.254 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.292e-05/0.01947, allocations: 15.92 kB / 276.4 MB, free: 2.238 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.437e-06/0.01948, allocations: 4 kB / 276.4 MB, free: 2.234 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.241e-05/0.01952, allocations: 7.953 kB / 276.4 MB, free: 2.227 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.222e-06/0.01953, allocations: 4 kB / 276.4 MB, free: 2.223 MB / 250.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 7.864e-05/0.0196, allocations: 160.6 kB / 276.6 MB, free: 2.055 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.989e-05/0.01966, allocations: 69.42 kB / 276.6 MB, free: 1.98 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000133/0.0198, allocations: 99.42 kB / 276.7 MB, free: 1.875 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.0198, allocations: 0 / 276.7 MB, free: 1.875 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.764e-06/0.0198, allocations: 4.062 kB / 276.7 MB, free: 1.871 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.0198, allocations: 4 kB / 276.7 MB, free: 1.867 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001282/0.01993, allocations: 145.2 kB / 276.9 MB, free: 1.699 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.01993, allocations: 4 kB / 276.9 MB, free: 1.695 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.326e-05/0.01998, allocations: 15.92 kB / 276.9 MB, free: 1.68 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.01998, allocations: 7.938 kB / 276.9 MB, free: 1.672 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.642e-06/0.01999, allocations: 0 / 276.9 MB, free: 1.672 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.01999, allocations: 0 / 276.9 MB, free: 1.672 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.01999, allocations: 4 kB / 276.9 MB, free: 1.668 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003138/0.02313, allocations: 143.9 kB / 277.1 MB, free: 1.496 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.819e-05/0.02319, allocations: 47.77 kB / 277.1 MB, free: 1.449 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.44e-05/0.02321, allocations: 11.92 kB / 277.1 MB, free: 1.438 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.011e-05/0.02325, allocations: 64 / 277.1 MB, free: 1.438 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.718e-05/0.02329, allocations: 15.98 kB / 277.1 MB, free: 1.422 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.474e-05/0.0233, allocations: 4 kB / 277.1 MB, free: 1.418 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001183/0.02342, allocations: 213 kB / 277.3 MB, free: 1.211 MB / 250.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02342, allocations: 0 / 277.3 MB, free: 1.211 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002289/0.02365, allocations: 35.94 kB / 277.4 MB, free: 1.176 MB / 250.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.0008832/0.02453, allocations: 404.2 kB / 277.8 MB, free: 0.918 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001046/0.02464, allocations: 43.61 kB / 277.8 MB, free: 0.8711 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.343e-06/0.02464, allocations: 0 / 277.8 MB, free: 0.8711 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 4.034e-05/0.02468, allocations: 23.73 kB / 277.8 MB, free: 0.8438 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002799/0.02496, allocations: 65.27 kB / 277.9 MB, free: 0.7773 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003908/0.02535, allocations: 330 kB / 278.2 MB, free: 432 kB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.184e-05/0.0254, allocations: 79.97 kB / 278.3 MB, free: 332 kB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.417e-05/0.02546, allocations: 21.62 kB / 278.3 MB, free: 308 kB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000103/0.02556, allocations: 106.4 kB / 278.4 MB, free: 200 kB / 250.7 MB Notification: Performance of SimCode: time 4.21e-07/0.02556, allocations: 4 kB / 278.4 MB, free: 196 kB / 250.7 MB Notification: Performance of Templates: time 0.01145/0.03701, allocations: 3.233 MB / 281.7 MB, free: 13.02 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.8013149392791092]