Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.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.001122/0.001122, allocations: 77.97 kB / 21.42 MB, free: 3.074 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.001171/0.001171, allocations: 170 kB / 24.82 MB, free: 9.266 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 1.076/1.076, allocations: 177.1 MB / 205.3 MB, free: 5.488 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.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.803e-06/1.803e-06, allocations: 0 / 273.4 MB, free: 1.301 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.371e-05/1.551e-05, allocations: 2.312 kB / 273.4 MB, free: 1.297 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.002334/0.002349, allocations: 1.934 MB / 275.3 MB, free: 15.35 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001381/0.00373, allocations: 1.231 MB / 276.5 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.837e-05/0.003828, allocations: 11.88 kB / 276.6 MB, free: 14.1 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002583/0.004087, allocations: 63.72 kB / 276.6 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002678/0.004355, allocations: 139.2 kB / 276.8 MB, free: 13.9 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004241/0.004779, allocations: 227.2 kB / 277 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001849/0.004964, allocations: 187.4 kB / 277.2 MB, free: 13.49 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.268e-05/0.005046, allocations: 17.8 kB / 277.2 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001221/0.005168, allocations: 103.7 kB / 277.3 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.741e-05/0.005256, allocations: 75.78 kB / 277.4 MB, free: 13.3 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.778e-05/0.005274, allocations: 8 kB / 277.4 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000121/0.005395, allocations: 75.81 kB / 277.4 MB, free: 13.22 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.059e-05/0.005455, allocations: 51.78 kB / 277.5 MB, free: 13.17 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.264e-05/0.005498, allocations: 43.84 kB / 277.5 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002084/0.005706, allocations: 187.2 kB / 277.7 MB, free: 12.94 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.553e-06/0.005708, allocations: 0 / 277.7 MB, free: 12.94 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.61e-07/0.005708, allocations: 0 / 277.7 MB, free: 12.94 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.597e-06/0.005712, allocations: 0 / 277.7 MB, free: 12.94 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.0005302/0.006242, allocations: 0.575 MB / 278.3 MB, free: 12.32 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.306e-05/0.006275, allocations: 12.03 kB / 278.3 MB, free: 12.31 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.46e-05/0.00632, allocations: 24.8 kB / 278.3 MB, free: 12.29 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002082/0.006528, allocations: 227.6 kB / 278.5 MB, free: 12.04 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.685e-05/0.006545, allocations: 4.375 kB / 278.6 MB, free: 12.04 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.15e-05/0.006556, allocations: 8.375 kB / 278.6 MB, free: 12.03 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002026/0.006759, allocations: 145.3 kB / 278.7 MB, free: 11.86 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.465e-06/0.006767, allocations: 3.938 kB / 278.7 MB, free: 11.86 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.428e-06/0.006777, allocations: 7.984 kB / 278.7 MB, free: 11.85 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.006782, allocations: 0 / 278.7 MB, free: 11.85 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.99e-05/0.006822, allocations: 27.89 kB / 278.7 MB, free: 11.82 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003163/0.007138, allocations: 331.6 kB / 279.1 MB, free: 11.46 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001151/0.007253, allocations: 105.4 kB / 279.2 MB, free: 11.32 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.053e-05/0.007294, allocations: 54.91 kB / 279.2 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.862e-05/0.007312, allocations: 4 kB / 279.2 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.185e-05/0.007394, allocations: 69.03 kB / 279.3 MB, free: 11.17 MB / 266.7 MB Notification: Performance of pre-optimization done (n=9): time 1.072e-06/0.007395, allocations: 0 / 279.3 MB, free: 11.17 MB / 266.7 MB Notification: Performance of matching and sorting (n=9): time 0.0001859/0.007581, allocations: 117.4 kB / 279.4 MB, free: 11.05 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.131e-05/0.007632, allocations: 114.8 kB / 279.5 MB, free: 10.91 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001818/0.007814, allocations: 312.2 kB / 279.8 MB, free: 10.59 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.015e-05/0.007834, allocations: 29.95 kB / 279.9 MB, free: 10.55 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.662e-05/0.007921, allocations: 194.7 kB / 280 MB, free: 10.36 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.857e-05/0.007939, allocations: 11.91 kB / 280.1 MB, free: 10.34 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.723e-05/0.007977, allocations: 35.34 kB / 280.1 MB, free: 10.3 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.008105, allocations: 0.5079 MB / 280.6 MB, free: 9.781 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.635e-05/0.008121, allocations: 4 kB / 280.6 MB, free: 9.777 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.342e-05/0.008165, allocations: 68.73 kB / 280.7 MB, free: 9.691 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.313e-05/0.008208, allocations: 35.31 kB / 280.7 MB, free: 9.648 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.00821, allocations: 0 / 280.7 MB, free: 9.648 MB / 266.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 9.094e-05/0.008301, allocations: 97.44 kB / 280.8 MB, free: 9.547 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.989e-06/0.008311, allocations: 8 kB / 280.8 MB, free: 9.539 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.947e-06/0.008315, allocations: 0 / 280.8 MB, free: 9.539 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.024e-05/0.008325, allocations: 0 / 280.8 MB, free: 9.539 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.864e-05/0.008384, allocations: 12 kB / 280.8 MB, free: 9.527 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.846e-06/0.008386, allocations: 0 / 280.8 MB, free: 9.527 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.636e-05/0.008423, allocations: 11.92 kB / 280.8 MB, free: 9.516 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.62e-06/0.008428, allocations: 4 kB / 280.8 MB, free: 9.512 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 7.795e-05/0.008506, allocations: 161.7 kB / 281 MB, free: 9.344 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.106e-05/0.008557, allocations: 73.48 kB / 281.1 MB, free: 9.266 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001203/0.008678, allocations: 99.45 kB / 281.2 MB, free: 9.16 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.524e-06/0.00868, allocations: 7.938 kB / 281.2 MB, free: 9.152 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-06/0.008682, allocations: 0 / 281.2 MB, free: 9.152 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.008686, allocations: 0 / 281.2 MB, free: 9.152 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001195/0.008805, allocations: 157.1 kB / 281.3 MB, free: 8.973 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.008807, allocations: 0 / 281.3 MB, free: 8.973 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.499e-05/0.008842, allocations: 12 kB / 281.3 MB, free: 8.961 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.008845, allocations: 3.938 kB / 281.3 MB, free: 8.957 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.576e-06/0.008853, allocations: 7.984 kB / 281.3 MB, free: 8.949 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.008854, allocations: 0 / 281.3 MB, free: 8.949 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.008856, allocations: 4 kB / 281.3 MB, free: 8.945 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001174/0.008973, allocations: 151.6 kB / 281.5 MB, free: 8.766 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.515e-05/0.009018, allocations: 31.84 kB / 281.5 MB, free: 8.734 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.966e-05/0.009038, allocations: 11.94 kB / 281.5 MB, free: 8.723 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.92e-05/0.009067, allocations: 3.938 kB / 281.5 MB, free: 8.719 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.216e-05/0.009099, allocations: 11.98 kB / 281.6 MB, free: 8.707 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.447e-05/0.009114, allocations: 7.984 kB / 281.6 MB, free: 8.699 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.683e-05/0.00921, allocations: 213.1 kB / 281.8 MB, free: 8.492 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.00921, allocations: 0 / 281.8 MB, free: 8.492 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001679/0.009378, allocations: 27.94 kB / 281.8 MB, free: 8.465 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.0007889/0.01017, allocations: 405.3 kB / 282.2 MB, free: 8.207 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001033/0.01027, allocations: 55.59 kB / 282.2 MB, free: 8.148 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.01027, allocations: 0 / 282.2 MB, free: 8.148 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.522e-05/0.01031, allocations: 27.61 kB / 282.3 MB, free: 8.117 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002321/0.01054, allocations: 75.19 kB / 282.3 MB, free: 8.047 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003557/0.0109, allocations: 341.1 kB / 282.7 MB, free: 7.68 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.594e-05/0.01094, allocations: 83.97 kB / 282.8 MB, free: 7.578 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.716e-05/0.01099, allocations: 25.73 kB / 282.8 MB, free: 7.555 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.934e-05/0.01108, allocations: 110.1 kB / 282.9 MB, free: 7.445 MB / 266.7 MB Notification: Performance of SimCode: time 4.91e-07/0.01108, allocations: 0 / 282.9 MB, free: 7.445 MB / 266.7 MB Notification: Performance of Templates: time 0.004474/0.01555, allocations: 3.217 MB / 286.1 MB, free: 4.277 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.937229711096734]