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.0007498/0.0007498, 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.003502/0.003502, allocations: 143.4 kB / 24.68 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.8212/0.8212, allocations: 173.4 MB / 201.2 MB, free: 9.453 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.653e-06/1.653e-06, allocations: 3.938 kB / 319.7 MB, free: 5.875 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.684e-05/1.849e-05, allocations: 6.219 kB / 319.7 MB, free: 5.867 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.002054/0.002073, allocations: 1.844 MB / 321.5 MB, free: 4.008 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001184/0.003257, allocations: 1.083 MB / 322.6 MB, free: 2.918 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.002e-05/0.003347, allocations: 11.88 kB / 322.6 MB, free: 2.906 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002389/0.003586, allocations: 71.59 kB / 322.7 MB, free: 2.836 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001932/0.003779, allocations: 91.53 kB / 322.8 MB, free: 2.746 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004114/0.004191, allocations: 262 kB / 323 MB, free: 2.496 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000164/0.004355, allocations: 179.4 kB / 323.2 MB, free: 2.32 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.665e-05/0.004441, allocations: 29.72 kB / 323.2 MB, free: 2.289 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.642e-05/0.004538, allocations: 99.72 kB / 323.3 MB, free: 2.191 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.302e-05/0.004621, allocations: 67.8 kB / 323.4 MB, free: 2.125 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.715e-05/0.004638, allocations: 8 kB / 323.4 MB, free: 2.117 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000103/0.004741, allocations: 67.94 kB / 323.5 MB, free: 2.051 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.451e-05/0.004805, allocations: 59.77 kB / 323.5 MB, free: 1.992 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.529e-05/0.004851, allocations: 31.88 kB / 323.6 MB, free: 1.961 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002482/0.005099, allocations: 243.2 kB / 323.8 MB, free: 1.723 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.823e-06/0.005101, allocations: 0 / 323.8 MB, free: 1.723 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.31e-07/0.005101, allocations: 0 / 323.8 MB, free: 1.723 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.516e-06/0.005105, allocations: 0 / 323.8 MB, free: 1.723 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0004558/0.005561, allocations: 473.8 kB / 324.3 MB, free: 1.227 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.765e-05/0.005588, allocations: 15.97 kB / 324.3 MB, free: 1.211 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.801e-05/0.005626, allocations: 20.8 kB / 324.3 MB, free: 1.191 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002355/0.005862, allocations: 228.8 kB / 324.5 MB, free: 0.9375 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.081e-05/0.005873, allocations: 4.375 kB / 324.5 MB, free: 0.9336 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.338e-05/0.005886, allocations: 8.375 kB / 324.5 MB, free: 0.9258 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002495/0.006135, allocations: 184.9 kB / 324.7 MB, free: 0.7148 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.006145, allocations: 3.938 kB / 324.7 MB, free: 0.7109 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.11e-05/0.006156, allocations: 3.984 kB / 324.7 MB, free: 0.707 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.868e-06/0.00616, allocations: 0 / 324.7 MB, free: 0.707 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.714e-05/0.006227, allocations: 35.98 kB / 324.8 MB, free: 0.6719 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003087/0.006535, allocations: 314.1 kB / 325.1 MB, free: 336 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001441/0.006679, allocations: 119.8 kB / 325.2 MB, free: 188 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.993e-05/0.006729, allocations: 46.56 kB / 325.2 MB, free: 132 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.625e-05/0.006746, allocations: 0 / 325.2 MB, free: 132 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003845/0.00713, allocations: 83.31 kB / 325.3 MB, free: 36 kB / 282.7 MB Notification: Performance of pre-optimization done (n=9): time 9.02e-07/0.007131, allocations: 0 / 325.3 MB, free: 36 kB / 282.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002453/0.007376, allocations: 157.6 kB / 325.5 MB, free: 15.87 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.775e-05/0.007434, allocations: 136.5 kB / 325.6 MB, free: 15.71 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002043/0.007638, allocations: 325.9 kB / 325.9 MB, free: 15.38 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.47e-05/0.007653, allocations: 29.7 kB / 326 MB, free: 15.35 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.912e-05/0.007712, allocations: 128.4 kB / 326.1 MB, free: 15.22 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.76e-05/0.00773, allocations: 23.75 kB / 326.1 MB, free: 15.2 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.444e-05/0.007764, allocations: 37.59 kB / 326.1 MB, free: 15.16 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.241e-05/0.007837, allocations: 326.8 kB / 326.5 MB, free: 14.83 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.101e-05/0.007878, allocations: 23.98 kB / 326.5 MB, free: 14.8 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.291e-05/0.007941, allocations: 114.8 kB / 326.6 MB, free: 14.67 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.275e-05/0.008023, allocations: 65.89 kB / 326.7 MB, free: 14.6 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.008025, allocations: 0 / 326.7 MB, free: 14.6 MB / 298.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001108/0.008136, allocations: 109.5 kB / 326.8 MB, free: 14.48 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.054e-05/0.008147, allocations: 8.062 kB / 326.8 MB, free: 14.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.037e-06/0.008151, allocations: 0 / 326.8 MB, free: 14.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.034e-05/0.008161, allocations: 0 / 326.8 MB, free: 14.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.45e-05/0.008216, allocations: 15.98 kB / 326.8 MB, free: 14.46 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.389e-06/0.00822, allocations: 3.938 kB / 326.8 MB, free: 14.46 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.492e-05/0.008255, allocations: 7.953 kB / 326.8 MB, free: 14.45 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.071e-06/0.008261, allocations: 4.156 kB / 326.8 MB, free: 14.45 MB / 298.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.182e-05/0.008343, allocations: 149.8 kB / 326.9 MB, free: 14.29 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.725e-05/0.00839, allocations: 69.48 kB / 327 MB, free: 14.21 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001508/0.008541, allocations: 131.5 kB / 327.1 MB, free: 14.08 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.008544, allocations: 4 kB / 327.1 MB, free: 14.08 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.008547, allocations: 0 / 327.1 MB, free: 14.08 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.008551, allocations: 0 / 327.1 MB, free: 14.08 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001093/0.00866, allocations: 181.1 kB / 327.3 MB, free: 13.87 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.008661, allocations: 0 / 327.3 MB, free: 13.87 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.428e-05/0.008695, allocations: 12 kB / 327.3 MB, free: 13.86 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.292e-06/0.008696, allocations: 0 / 327.3 MB, free: 13.86 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.075e-05/0.008707, allocations: 15.97 kB / 327.4 MB, free: 13.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.008708, allocations: 0 / 327.4 MB, free: 13.84 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.008709, allocations: 3.938 kB / 327.4 MB, free: 13.84 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001455/0.008855, allocations: 174.5 kB / 327.5 MB, free: 13.64 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.688e-05/0.008902, allocations: 35.84 kB / 327.6 MB, free: 13.61 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.656e-05/0.008918, allocations: 4 kB / 327.6 MB, free: 13.61 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.184e-05/0.00895, allocations: 8.047 kB / 327.6 MB, free: 13.6 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.6e-05/0.008986, allocations: 15.98 kB / 327.6 MB, free: 13.58 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.086e-05/0.008997, allocations: 4 kB / 327.6 MB, free: 13.58 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001419/0.009139, allocations: 241.2 kB / 327.8 MB, free: 13.34 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.009139, allocations: 0 / 327.8 MB, free: 13.34 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001574/0.009296, allocations: 35.92 kB / 327.9 MB, free: 13.3 MB / 298.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.0006222/0.009918, allocations: 450.5 kB / 328.3 MB, free: 13.04 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001302/0.01005, allocations: 67.89 kB / 328.4 MB, free: 12.98 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.362e-06/0.01005, allocations: 0 / 328.4 MB, free: 12.98 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.406e-05/0.01009, allocations: 35.91 kB / 328.4 MB, free: 12.94 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002195/0.01031, allocations: 63.5 kB / 328.5 MB, free: 12.88 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003892/0.0107, allocations: 394.9 kB / 328.9 MB, free: 12.46 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.126e-05/0.01078, allocations: 139.9 kB / 329 MB, free: 12.3 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.505e-05/0.01082, allocations: 20.5 kB / 329 MB, free: 12.29 MB / 298.7 MB Notification: Performance of SimCode: time 3.81e-07/0.01082, allocations: 0 / 329 MB, free: 12.29 MB / 298.7 MB Notification: Performance of Templates: time 0.002886/0.01371, allocations: 2.961 MB / 332 MB, free: 9.332 MB / 298.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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.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.276332566514611]