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.0008262/0.0008262, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001195/0.002021, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0007155/0.0007155, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009341/0.00165, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.12/1.12, allocations: 177.2 MB / 189.8 MB, free: 5.246 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1174/1.237, allocations: 53.66 MB / 243.4 MB, free: 15.5 MB / 250.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.854e-06/1.854e-06, allocations: 0 / 244.7 MB, free: 14.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.381e-05/3.567e-05, allocations: 6.312 kB / 244.7 MB, free: 14.22 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.005211/0.005246, allocations: 1.991 MB / 246.7 MB, free: 12.21 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00277/0.008017, allocations: 1.273 MB / 248 MB, free: 10.93 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002138/0.00823, allocations: 11.94 kB / 248 MB, free: 10.92 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003388/0.008569, allocations: 67.48 kB / 248 MB, free: 10.85 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000689/0.009258, allocations: 139.3 kB / 248.2 MB, free: 10.71 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000879/0.01014, allocations: 237.9 kB / 248.4 MB, free: 10.48 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003203/0.01046, allocations: 175.5 kB / 248.6 MB, free: 10.31 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001079/0.01057, allocations: 22.44 kB / 248.6 MB, free: 10.29 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002221/0.01079, allocations: 136.4 kB / 248.7 MB, free: 10.16 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001313/0.01092, allocations: 67.8 kB / 248.8 MB, free: 10.09 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.636e-05/0.01095, allocations: 8 kB / 248.8 MB, free: 10.09 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000234/0.01118, allocations: 75.88 kB / 248.9 MB, free: 10.01 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.273e-05/0.01126, allocations: 39.86 kB / 248.9 MB, free: 9.973 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.872e-05/0.01132, allocations: 35.81 kB / 249 MB, free: 9.938 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003422/0.01166, allocations: 179.3 kB / 249.1 MB, free: 9.762 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.358e-05/0.01168, allocations: 0 / 249.1 MB, free: 9.762 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.21e-07/0.01168, allocations: 4 kB / 249.1 MB, free: 9.758 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.128e-05/0.01169, allocations: 3.938 kB / 249.1 MB, free: 9.754 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.0006591/0.01235, allocations: 472.8 kB / 249.6 MB, free: 9.262 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/0.01239, allocations: 12.03 kB / 249.6 MB, free: 9.25 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.129e-05/0.01244, allocations: 20.86 kB / 249.6 MB, free: 9.23 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002769/0.01272, allocations: 212.8 kB / 249.8 MB, free: 8.996 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.862e-05/0.01273, allocations: 4.375 kB / 249.9 MB, free: 8.992 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.747e-05/0.01275, allocations: 12.12 kB / 249.9 MB, free: 8.98 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002328/0.01298, allocations: 145.4 kB / 250 MB, free: 8.812 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.01299, allocations: 0 / 250 MB, free: 8.812 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.668e-06/0.013, allocations: 0 / 250 MB, free: 8.812 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-06/0.01301, allocations: 0 / 250 MB, free: 8.812 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.706e-05/0.01305, allocations: 22.75 kB / 250 MB, free: 8.789 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003213/0.01338, allocations: 211.5 kB / 250.2 MB, free: 8.559 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001705/0.01355, allocations: 145.3 kB / 250.4 MB, free: 8.387 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.517e-05/0.01359, allocations: 34.62 kB / 250.4 MB, free: 8.344 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.816e-05/0.01361, allocations: 4 kB / 250.4 MB, free: 8.34 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001041/0.01371, allocations: 66.16 kB / 250.5 MB, free: 8.262 MB / 250.7 MB Notification: Performance of pre-optimization done (n=9): time 1.373e-06/0.01372, allocations: 0 / 250.5 MB, free: 8.262 MB / 250.7 MB Notification: Performance of matching and sorting (n=9): time 0.0001776/0.01389, allocations: 81.59 kB / 250.6 MB, free: 8.176 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.997e-05/0.01396, allocations: 123 kB / 250.7 MB, free: 8.031 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002357/0.0142, allocations: 254.7 kB / 250.9 MB, free: 7.77 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.114e-05/0.01422, allocations: 29.7 kB / 251 MB, free: 7.734 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.996e-05/0.01428, allocations: 108.6 kB / 251.1 MB, free: 7.625 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.038e-05/0.0143, allocations: 11.91 kB / 251.1 MB, free: 7.613 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.736e-05/0.01435, allocations: 33.58 kB / 251.1 MB, free: 7.574 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001292/0.01448, allocations: 338.7 kB / 251.4 MB, free: 7.234 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.961e-05/0.0145, allocations: 6.828 kB / 251.4 MB, free: 7.227 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.469e-05/0.01454, allocations: 52.27 kB / 251.5 MB, free: 7.16 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.177e-05/0.0146, allocations: 47.38 kB / 251.5 MB, free: 7.105 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.0146, allocations: 0 / 251.5 MB, free: 7.105 MB / 250.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001011/0.01471, allocations: 68.44 kB / 251.6 MB, free: 7.031 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.288e-05/0.01472, allocations: 4 kB / 251.6 MB, free: 7.027 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.01472, allocations: 0 / 251.6 MB, free: 7.027 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.149e-05/0.01473, allocations: 0 / 251.6 MB, free: 7.027 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.921e-05/0.01481, allocations: 16.3 kB / 251.6 MB, free: 7.012 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.985e-06/0.01482, allocations: 12.08 kB / 251.6 MB, free: 7 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.213e-05/0.01487, allocations: 4 kB / 251.6 MB, free: 6.996 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.098e-05/0.01488, allocations: 8 kB / 251.7 MB, free: 6.988 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 9.225e-05/0.01498, allocations: 125.5 kB / 251.8 MB, free: 6.855 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.148e-05/0.01504, allocations: 53.61 kB / 251.8 MB, free: 6.797 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000134/0.01517, allocations: 79.42 kB / 251.9 MB, free: 6.715 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.255e-06/0.01517, allocations: 0 / 251.9 MB, free: 6.715 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.834e-06/0.01518, allocations: 4 kB / 251.9 MB, free: 6.711 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.01518, allocations: 0 / 251.9 MB, free: 6.711 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001374/0.01532, allocations: 113.8 kB / 252 MB, free: 6.582 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.01532, allocations: 11.92 kB / 252 MB, free: 6.57 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.177e-05/0.01539, allocations: 15.98 kB / 252 MB, free: 6.555 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.863e-05/0.01544, allocations: 31.92 kB / 252.1 MB, free: 6.523 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.01545, allocations: 3.984 kB / 252.1 MB, free: 6.52 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.386e-06/0.01546, allocations: 0 / 252.1 MB, free: 6.52 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.908e-06/0.01546, allocations: 7.938 kB / 252.1 MB, free: 6.512 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.01546, allocations: 0 / 252.1 MB, free: 6.512 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001237/0.01558, allocations: 108.4 kB / 252.2 MB, free: 6.379 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.843e-05/0.01561, allocations: 7.984 kB / 252.2 MB, free: 6.371 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.47e-05/0.01566, allocations: 0 / 252.2 MB, free: 6.371 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.098e-05/0.0157, allocations: 11.98 kB / 252.2 MB, free: 6.359 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.483e-05/0.01571, allocations: 4 kB / 252.2 MB, free: 6.355 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.000132/0.01585, allocations: 105.6 kB / 252.3 MB, free: 6.246 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.01585, allocations: 0 / 252.3 MB, free: 6.246 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002301/0.01608, allocations: 35.89 kB / 252.4 MB, free: 6.211 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.001797/0.01787, allocations: 0.5747 MB / 252.9 MB, free: 5.91 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001301/0.018, allocations: 36.83 kB / 253 MB, free: 5.871 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.099e-05/0.01801, allocations: 7.984 kB / 253 MB, free: 5.863 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 5.357e-05/0.01807, allocations: 28.89 kB / 253 MB, free: 5.832 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004101/0.01848, allocations: 374 kB / 253.4 MB, free: 5.402 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007186/0.0192, allocations: 327.8 kB / 253.7 MB, free: 5.047 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.504e-05/0.01926, allocations: 83.97 kB / 253.8 MB, free: 4.945 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.577e-05/0.01933, allocations: 25.47 kB / 253.8 MB, free: 4.922 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001267/0.01945, allocations: 87.59 kB / 253.9 MB, free: 4.836 MB / 250.7 MB Notification: Performance of SimCode: time 1.112e-06/0.01946, allocations: 0 / 253.9 MB, free: 4.836 MB / 250.7 MB Notification: Performance of Templates: time 0.007681/0.02714, allocations: 3.275 MB / 257.2 MB, free: 1.621 MB / 250.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7996150739490986]