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.001586/0.001586, allocations: 109.5 kB / 20.43 MB, free: 1.457 MB / 14.72 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.001885/0.001885, allocations: 181.5 kB / 23.71 MB, free: 4.695 MB / 14.72 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 1.617/1.617, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001594/0.001594, allocations: 51.92 kB / 370.9 MB, free: 9.379 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.338/0.3396, allocations: 52.18 MB / 423.1 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.005535/0.3451, allocations: 1.906 MB / 425 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002779/0.3479, allocations: 1.169 MB / 426.2 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001917/0.3481, allocations: 7.938 kB / 426.2 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005467/0.3486, allocations: 63.66 kB / 426.3 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004172/0.3491, allocations: 95.64 kB / 426.4 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001072/0.3501, allocations: 258.2 kB / 426.6 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003677/0.3505, allocations: 171.5 kB / 426.8 MB, free: 11.04 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001758/0.3507, allocations: 25.72 kB / 426.8 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001686/0.3508, allocations: 75.7 kB / 426.9 MB, free: 10.94 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001701/0.351, allocations: 87.55 kB / 427 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.248e-05/0.351, allocations: 8 kB / 427 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000232/0.3513, allocations: 71.94 kB / 427 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001347/0.3514, allocations: 51.83 kB / 427.1 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001267/0.3515, allocations: 79.42 kB / 427.2 MB, free: 10.65 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004686/0.352, allocations: 232.3 kB / 427.4 MB, free: 10.43 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.468e-06/0.352, allocations: 4 kB / 427.4 MB, free: 10.42 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.352, allocations: 0 / 427.4 MB, free: 10.42 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.989e-06/0.352, allocations: 0 / 427.4 MB, free: 10.42 MB / 334.1 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.001065/0.3531, allocations: 478.5 kB / 427.9 MB, free: 9.918 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.501e-05/0.3532, allocations: 8.031 kB / 427.9 MB, free: 9.91 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001008/0.3533, allocations: 24.8 kB / 427.9 MB, free: 9.887 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005885/0.3538, allocations: 229.5 kB / 428.1 MB, free: 9.641 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.297e-05/0.3539, allocations: 8.375 kB / 428.1 MB, free: 9.633 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.67e-05/0.3539, allocations: 8.125 kB / 428.1 MB, free: 9.625 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004549/0.3543, allocations: 155.6 kB / 428.3 MB, free: 9.445 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.3544, allocations: 0 / 428.3 MB, free: 9.445 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.935e-05/0.3544, allocations: 12 kB / 428.3 MB, free: 9.434 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.3544, allocations: 7.922 kB / 428.3 MB, free: 9.426 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001369/0.3545, allocations: 35.97 kB / 428.3 MB, free: 9.391 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007082/0.3552, allocations: 353.4 kB / 428.7 MB, free: 8.996 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003095/0.3555, allocations: 119.9 kB / 428.8 MB, free: 8.852 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001051/0.3556, allocations: 42.56 kB / 428.8 MB, free: 8.801 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.5e-05/0.3557, allocations: 7.938 kB / 428.9 MB, free: 8.793 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002301/0.3559, allocations: 83.31 kB / 428.9 MB, free: 8.699 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 2.074e-06/0.3559, allocations: 0 / 428.9 MB, free: 8.699 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004886/0.3564, allocations: 153.4 kB / 429.1 MB, free: 8.543 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000173/0.3566, allocations: 154.2 kB / 429.2 MB, free: 8.355 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004609/0.357, allocations: 330.1 kB / 429.6 MB, free: 8.027 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.199e-05/0.3571, allocations: 33.7 kB / 429.6 MB, free: 7.988 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001243/0.3572, allocations: 120.1 kB / 429.7 MB, free: 7.867 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.605e-05/0.3572, allocations: 23.95 kB / 429.7 MB, free: 7.844 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.206e-05/0.3573, allocations: 33.66 kB / 429.8 MB, free: 7.805 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001867/0.3575, allocations: 330.8 kB / 430.1 MB, free: 7.473 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.654e-05/0.3576, allocations: 23.98 kB / 430.1 MB, free: 7.449 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001555/0.3577, allocations: 94.78 kB / 430.2 MB, free: 7.332 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001802/0.3579, allocations: 80.22 kB / 430.3 MB, free: 7.238 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.3579, allocations: 4 kB / 430.3 MB, free: 7.234 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002737/0.3582, allocations: 121.5 kB / 430.4 MB, free: 7.109 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.312e-05/0.3582, allocations: 8 kB / 430.4 MB, free: 7.102 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.766e-06/0.3582, allocations: 0 / 430.4 MB, free: 7.102 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.534e-05/0.3582, allocations: 4 kB / 430.4 MB, free: 7.098 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001351/0.3584, allocations: 19.92 kB / 430.4 MB, free: 7.078 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.444e-05/0.3584, allocations: 4 kB / 430.4 MB, free: 7.074 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.685e-05/0.3585, allocations: 19.81 kB / 430.5 MB, free: 7.055 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.447e-05/0.3585, allocations: 8.125 kB / 430.5 MB, free: 7.047 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 0.0002086/0.3587, allocations: 154.1 kB / 430.6 MB, free: 6.887 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001333/0.3588, allocations: 65.55 kB / 430.7 MB, free: 6.816 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000327/0.3592, allocations: 127.2 kB / 430.8 MB, free: 6.684 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.604e-06/0.3592, allocations: 0 / 430.8 MB, free: 6.684 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.3592, allocations: 0 / 430.8 MB, free: 6.684 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.517e-05/0.3592, allocations: 11.92 kB / 430.8 MB, free: 6.672 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002488/0.3594, allocations: 208.7 kB / 431 MB, free: 6.426 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.3594, allocations: 0 / 431 MB, free: 6.426 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.375e-05/0.3595, allocations: 12 kB / 431 MB, free: 6.414 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.983e-06/0.3595, allocations: 0 / 431 MB, free: 6.414 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.351e-05/0.3595, allocations: 7.984 kB / 431 MB, free: 6.406 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.464e-06/0.3595, allocations: 0 / 431 MB, free: 6.406 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.3595, allocations: 4 kB / 431 MB, free: 6.402 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003189/0.3599, allocations: 166.5 kB / 431.2 MB, free: 6.215 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.888e-05/0.36, allocations: 31.84 kB / 431.2 MB, free: 6.184 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.273e-05/0.36, allocations: 8 kB / 431.2 MB, free: 6.176 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.991e-05/0.3601, allocations: 4 kB / 431.2 MB, free: 6.172 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.499e-05/0.3601, allocations: 15.92 kB / 431.3 MB, free: 6.156 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.778e-05/0.3602, allocations: 11.92 kB / 431.3 MB, free: 6.145 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003016/0.3605, allocations: 237.2 kB / 431.5 MB, free: 5.91 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3605, allocations: 0 / 431.5 MB, free: 5.91 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003017/0.3608, allocations: 39.94 kB / 431.5 MB, free: 5.871 MB / 334.1 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 (9): * Single equations (assignments): 7 * 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.0018/0.3626, allocations: 426.8 kB / 432 MB, free: 5.609 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002823/0.3629, allocations: 71.91 kB / 432 MB, free: 5.539 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3629, allocations: 0 / 432 MB, free: 5.539 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.9e-05/0.3629, allocations: 27.92 kB / 432.1 MB, free: 5.512 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000442/0.3634, allocations: 68.84 kB / 432.1 MB, free: 5.445 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007039/0.3641, allocations: 364.7 kB / 432.5 MB, free: 5.055 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004369/0.3645, allocations: 0.7398 MB / 433.2 MB, free: 4.289 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.342e-05/0.3646, allocations: 25.48 kB / 433.2 MB, free: 4.266 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.605e-05/0.3647, allocations: 23.44 kB / 433.3 MB, free: 4.242 MB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3647, allocations: 0 / 433.3 MB, free: 4.242 MB / 334.1 MB Notification: Performance of Templates: time 0.007508/0.3722, allocations: 2.909 MB / 436.2 MB, free: 1.359 MB / 334.1 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: 5.024514613673091]