Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.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.00113/0.00113, allocations: 80.8 kB / 21.49 MB, free: 2.988 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.001019/0.001019, allocations: 170.2 kB / 24.91 MB, free: 9.188 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 0.9594/0.9594, allocations: 177.1 MB / 205.3 MB, free: 5.484 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.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5019,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5019,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 273.5 MB, free: 1.277 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.297e-05/2.445e-05, allocations: 2.312 kB / 273.5 MB, free: 1.273 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.00224/0.002265, allocations: 1.666 MB / 275.1 MB, free: 15.6 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007774/0.003042, allocations: 0.5451 MB / 275.7 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.692e-05/0.003119, allocations: 4 kB / 275.7 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 4.826e-05/0.003167, allocations: 11.86 kB / 275.7 MB, free: 15.03 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001311/0.003299, allocations: 7.938 kB / 275.7 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002683/0.003567, allocations: 71.56 kB / 275.8 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 9.994e-05/0.003667, allocations: 51.78 kB / 275.8 MB, free: 14.9 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.509e-05/0.003742, allocations: 12.17 kB / 275.8 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001076/0.003849, allocations: 31.95 kB / 275.9 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.577e-05/0.003895, allocations: 11.94 kB / 275.9 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.583e-05/0.003911, allocations: 4 kB / 275.9 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.894e-05/0.00396, allocations: 11.98 kB / 275.9 MB, free: 14.83 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.558e-05/0.003996, allocations: 11.94 kB / 275.9 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 1.992e-05/0.004016, allocations: 23.91 kB / 275.9 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001106/0.004126, allocations: 43.77 kB / 276 MB, free: 14.75 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.913e-06/0.004128, allocations: 0 / 276 MB, free: 14.75 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.153e-06/0.004129, allocations: 4 kB / 276 MB, free: 14.75 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.108e-06/0.004133, allocations: 0 / 276 MB, free: 14.75 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0002862/0.00442, allocations: 280.5 kB / 276.3 MB, free: 14.45 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.209e-05/0.004452, allocations: 12.03 kB / 276.3 MB, free: 14.44 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001195/0.004571, allocations: 16.92 kB / 276.3 MB, free: 14.43 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001566/0.004728, allocations: 146.2 kB / 276.4 MB, free: 14.26 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.307e-06/0.004737, allocations: 4.375 kB / 276.4 MB, free: 14.25 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.303e-06/0.004744, allocations: 4.375 kB / 276.4 MB, free: 14.25 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001644/0.004909, allocations: 110 kB / 276.5 MB, free: 14.12 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.004917, allocations: 7.922 kB / 276.6 MB, free: 14.11 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.993e-06/0.004924, allocations: 0 / 276.6 MB, free: 14.11 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.229e-06/0.004929, allocations: 3.984 kB / 276.6 MB, free: 14.11 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.431e-05/0.004943, allocations: 8 kB / 276.6 MB, free: 14.1 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001673/0.005111, allocations: 145.2 kB / 276.7 MB, free: 13.94 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.129e-05/0.005152, allocations: 41.2 kB / 276.7 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.426e-05/0.005166, allocations: 9.719 kB / 276.8 MB, free: 13.87 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.214e-05/0.005178, allocations: 0 / 276.8 MB, free: 13.87 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.177e-05/0.0052, allocations: 42.5 kB / 276.8 MB, free: 13.82 MB / 266.7 MB Notification: Performance of pre-optimization done (n=2): time 6.42e-07/0.005201, allocations: 0 / 276.8 MB, free: 13.82 MB / 266.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001151/0.005316, allocations: 41.84 kB / 276.8 MB, free: 13.77 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.703e-05/0.005363, allocations: 89.08 kB / 276.9 MB, free: 13.66 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.637e-05/0.005449, allocations: 138 kB / 277.1 MB, free: 13.52 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.668e-06/0.005459, allocations: 25.7 kB / 277.1 MB, free: 13.49 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.981e-05/0.005489, allocations: 92.11 kB / 277.2 MB, free: 13.39 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.512e-05/0.005504, allocations: 7.953 kB / 277.2 MB, free: 13.39 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.308e-05/0.005527, allocations: 13.72 kB / 277.2 MB, free: 13.37 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.217e-05/0.005599, allocations: 318.8 kB / 277.5 MB, free: 13.05 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.254e-06/0.005606, allocations: 0 / 277.5 MB, free: 13.05 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.831e-06/0.005612, allocations: 0 / 277.5 MB, free: 13.05 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.07e-05/0.005633, allocations: 12.91 kB / 277.5 MB, free: 13.03 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.005635, allocations: 4 kB / 277.5 MB, free: 13.03 MB / 266.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.427e-05/0.005679, allocations: 41.52 kB / 277.6 MB, free: 12.98 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.251e-05/0.005691, allocations: 11.98 kB / 277.6 MB, free: 12.97 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.005696, allocations: 0 / 277.6 MB, free: 12.97 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.789e-06/0.005706, allocations: 0 / 277.6 MB, free: 12.97 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.298e-05/0.005749, allocations: 0 / 277.6 MB, free: 12.97 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.617e-06/0.005752, allocations: 4 kB / 277.6 MB, free: 12.96 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.378e-05/0.005766, allocations: 0 / 277.6 MB, free: 12.96 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.589e-06/0.005771, allocations: 0 / 277.6 MB, free: 12.96 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * 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 5.002e-05/0.005821, allocations: 112.7 kB / 277.7 MB, free: 12.84 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.078e-05/0.005851, allocations: 41.62 kB / 277.7 MB, free: 12.8 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.088e-05/0.005872, allocations: 11.81 kB / 277.7 MB, free: 12.79 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.005874, allocations: 0 / 277.7 MB, free: 12.79 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.043e-06/0.005876, allocations: 3.984 kB / 277.7 MB, free: 12.78 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.005879, allocations: 0 / 277.7 MB, free: 12.78 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.724e-05/0.005956, allocations: 69.89 kB / 277.8 MB, free: 12.7 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.005957, allocations: 0 / 277.8 MB, free: 12.7 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.157e-05/0.005979, allocations: 11.92 kB / 277.8 MB, free: 12.68 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.005983, allocations: 11.94 kB / 277.8 MB, free: 12.67 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.198e-06/0.005987, allocations: 32 / 277.8 MB, free: 12.67 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.005988, allocations: 4 kB / 277.8 MB, free: 12.67 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.00599, allocations: 0 / 277.8 MB, free: 12.67 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.347e-05/0.006063, allocations: 136.4 kB / 278 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.538e-05/0.006088, allocations: 15.94 kB / 278 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.718e-06/0.006098, allocations: 3.938 kB / 278 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.826e-05/0.006126, allocations: 4 kB / 278 MB, free: 12.49 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.327e-05/0.00615, allocations: 0 / 278 MB, free: 12.49 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.535e-06/0.006152, allocations: 0 / 278 MB, free: 12.49 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.34e-05/0.006176, allocations: 28.83 kB / 278 MB, free: 12.46 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006176, allocations: 0 / 278 MB, free: 12.46 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001179/0.006294, allocations: 19.91 kB / 278 MB, free: 12.44 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 7.345e-05/0.006367, allocations: 80.41 kB / 278.1 MB, free: 12.35 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 4.62e-05/0.006413, allocations: 8.859 kB / 278.1 MB, free: 12.34 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.006416, allocations: 0 / 278.1 MB, free: 12.34 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.015e-05/0.006426, allocations: 8.859 kB / 278.1 MB, free: 12.33 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001901/0.006616, allocations: 20.23 kB / 278.2 MB, free: 12.3 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004559/0.007072, allocations: 183.3 kB / 278.3 MB, free: 12.1 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.184e-05/0.007114, allocations: 63.28 kB / 278.4 MB, free: 12.02 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.733e-05/0.007141, allocations: 4 kB / 278.4 MB, free: 12.02 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.952e-05/0.007211, allocations: 59.36 kB / 278.5 MB, free: 11.96 MB / 266.7 MB Notification: Performance of SimCode: time 7.91e-07/0.007212, allocations: 0 / 278.5 MB, free: 11.96 MB / 266.7 MB Notification: Performance of Templates: time 0.003017/0.01023, allocations: 0.662 MB / 279.1 MB, free: 11.31 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/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.5558198052458465]