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.001906/0.001906, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 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.002649/0.002649, allocations: 211.3 kB / 23.73 MB, free: 4.523 MB / 14.72 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.582/1.582, allocations: 230.6 MB / 257.5 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] 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 0.0018/0.0018, allocations: 51.92 kB / 378.2 MB, free: 2.461 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2595/0.2613, allocations: 53.36 MB / 431.6 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.00379/0.265, allocations: 1.886 MB / 433.4 MB, free: 4.824 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002366/0.2674, allocations: 1.223 MB / 434.7 MB, free: 3.594 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001306/0.2675, allocations: 7.938 kB / 434.7 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002903/0.2678, allocations: 59.67 kB / 434.7 MB, free: 3.527 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000393/0.2682, allocations: 143.4 kB / 434.9 MB, free: 3.387 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006708/0.2689, allocations: 222.3 kB / 435.1 MB, free: 3.172 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002849/0.2692, allocations: 187.5 kB / 435.3 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001111/0.2693, allocations: 13.75 kB / 435.3 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001425/0.2694, allocations: 87.62 kB / 435.4 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001688/0.2696, allocations: 83.61 kB / 435.5 MB, free: 2.805 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.943e-05/0.2696, allocations: 12 kB / 435.5 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001782/0.2698, allocations: 67.95 kB / 435.5 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001042/0.2699, allocations: 59.81 kB / 435.6 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.671e-05/0.27, allocations: 59.55 kB / 435.7 MB, free: 2.609 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004042/0.2704, allocations: 245.2 kB / 435.9 MB, free: 2.375 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.2704, allocations: 0 / 435.9 MB, free: 2.375 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.123e-06/0.2704, allocations: 0 / 435.9 MB, free: 2.375 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.674e-06/0.2704, allocations: 0 / 435.9 MB, free: 2.375 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.0008484/0.2713, allocations: 478.5 kB / 436.4 MB, free: 1.871 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.376e-05/0.2713, allocations: 8.031 kB / 436.4 MB, free: 1.863 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.395e-05/0.2714, allocations: 24.8 kB / 436.4 MB, free: 1.84 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005176/0.2719, allocations: 237.4 kB / 436.6 MB, free: 1.582 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.407e-05/0.2719, allocations: 12.36 kB / 436.6 MB, free: 1.57 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.234e-05/0.272, allocations: 12.12 kB / 436.6 MB, free: 1.559 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003836/0.2723, allocations: 172.4 kB / 436.8 MB, free: 1.359 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.2723, allocations: 0 / 436.8 MB, free: 1.359 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.604e-05/0.2724, allocations: 4 kB / 436.8 MB, free: 1.355 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.611e-06/0.2724, allocations: 3.938 kB / 436.8 MB, free: 1.352 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001276/0.2725, allocations: 43.92 kB / 436.9 MB, free: 1.309 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005516/0.273, allocations: 322 kB / 437.2 MB, free: 0.957 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002838/0.2733, allocations: 115.9 kB / 437.3 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.669e-05/0.2734, allocations: 42.56 kB / 437.3 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.202e-05/0.2735, allocations: 7.984 kB / 437.3 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001819/0.2736, allocations: 79.38 kB / 437.4 MB, free: 0.668 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.953e-06/0.2736, allocations: 0 / 437.4 MB, free: 0.668 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004231/0.2741, allocations: 165.4 kB / 437.6 MB, free: 0.5 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001005/0.2742, allocations: 132.5 kB / 437.7 MB, free: 348 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003981/0.2746, allocations: 337.9 kB / 438 MB, free: 4 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.836e-05/0.2746, allocations: 25.7 kB / 438.1 MB, free: 15.97 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001095/0.2747, allocations: 132.1 kB / 438.2 MB, free: 15.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.395e-05/0.2747, allocations: 23.83 kB / 438.2 MB, free: 15.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.699e-05/0.2748, allocations: 29.7 kB / 438.2 MB, free: 15.78 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000194/0.275, allocations: 334.8 kB / 438.6 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.276e-05/0.2751, allocations: 28.17 kB / 438.6 MB, free: 15.42 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001682/0.2753, allocations: 145.3 kB / 438.7 MB, free: 15.24 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001748/0.2754, allocations: 80.22 kB / 438.8 MB, free: 15.15 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2754, allocations: 4 kB / 438.8 MB, free: 15.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002743/0.2757, allocations: 129.7 kB / 439 MB, free: 15.01 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/0.2757, allocations: 8.156 kB / 439 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.2757, allocations: 64 / 439 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.928e-05/0.2757, allocations: 11.94 kB / 439 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001175/0.2759, allocations: 15.98 kB / 439 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.836e-06/0.2759, allocations: 4 kB / 439 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.153e-05/0.2759, allocations: 4 kB / 439 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.198e-05/0.276, allocations: 4 kB / 439 MB, free: 14.96 MB / 350.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.0001641/0.2761, allocations: 166.4 kB / 439.2 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.477e-05/0.2762, allocations: 65.52 kB / 439.2 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002971/0.2765, allocations: 131.4 kB / 439.4 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.065e-06/0.2765, allocations: 0 / 439.4 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.712e-06/0.2765, allocations: 4 kB / 439.4 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.2765, allocations: 0 / 439.4 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002115/0.2767, allocations: 185.2 kB / 439.5 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.2767, allocations: 0 / 439.5 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.583e-05/0.2768, allocations: 15.98 kB / 439.6 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.965e-06/0.2768, allocations: 0 / 439.6 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.294e-05/0.2768, allocations: 4 kB / 439.6 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.2768, allocations: 0 / 439.6 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.2768, allocations: 4 kB / 439.6 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003111/0.2772, allocations: 178.5 kB / 439.7 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001046/0.2773, allocations: 43.83 kB / 439.8 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.325e-05/0.2773, allocations: 0 / 439.8 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.141e-05/0.2774, allocations: 4 kB / 439.8 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.064e-05/0.2774, allocations: 11.98 kB / 439.8 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.785e-05/0.2774, allocations: 7.938 kB / 439.8 MB, free: 14.08 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002765/0.2777, allocations: 257.1 kB / 440.1 MB, free: 13.83 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2777, allocations: 0 / 440.1 MB, free: 13.83 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002878/0.278, allocations: 31.94 kB / 440.1 MB, free: 13.8 MB / 350.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 (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.001753/0.2797, allocations: 456.7 kB / 440.5 MB, free: 13.53 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002566/0.28, allocations: 79.84 kB / 440.6 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.28, allocations: 0 / 440.6 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.813e-05/0.2801, allocations: 39.91 kB / 440.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004186/0.2805, allocations: 61.77 kB / 440.7 MB, free: 13.36 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007332/0.2813, allocations: 381.3 kB / 441.1 MB, free: 12.95 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000141/0.2814, allocations: 131.9 kB / 441.2 MB, free: 12.8 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.251e-05/0.2815, allocations: 33.58 kB / 441.2 MB, free: 12.77 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.755e-05/0.2815, allocations: 23.44 kB / 441.3 MB, free: 12.74 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2815, allocations: 4 kB / 441.3 MB, free: 12.74 MB / 350.1 MB Notification: Performance of Templates: time 0.008038/0.2896, allocations: 3.175 MB / 444.4 MB, free: 9.609 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.862361113075167]