Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.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.001926/0.001926, allocations: 88.31 kB / 20.96 MB, free: 3.477 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.002432/0.002432, allocations: 161.6 kB / 24.27 MB, free: 172 kB / 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.542/1.542, allocations: 177.1 MB / 204.6 MB, free: 5.598 MB / 186.7 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.RealSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.325e-06/2.325e-06, allocations: 0 / 272.3 MB, free: 1.812 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.055e-05/3.287e-05, allocations: 2.312 kB / 272.3 MB, free: 1.809 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample): time 0.004485/0.004517, allocations: 1.606 MB / 273.9 MB, free: 200 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001384/0.005901, allocations: 0.5102 MB / 274.4 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.151e-05/0.005993, allocations: 7.938 kB / 274.5 MB, free: 15.67 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 6.001e-05/0.006053, allocations: 3.938 kB / 274.5 MB, free: 15.67 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001559/0.006209, allocations: 11.86 kB / 274.5 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003818/0.006591, allocations: 55.81 kB / 274.5 MB, free: 15.6 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001531/0.006744, allocations: 55.72 kB / 274.6 MB, free: 15.55 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001167/0.00686, allocations: 12.19 kB / 274.6 MB, free: 15.54 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000178/0.007038, allocations: 35.89 kB / 274.6 MB, free: 15.5 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.209e-05/0.0071, allocations: 15.92 kB / 274.6 MB, free: 15.48 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.285e-05/0.007123, allocations: 4 kB / 274.6 MB, free: 15.48 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.104e-05/0.007174, allocations: 4 kB / 274.6 MB, free: 15.48 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.288e-05/0.007237, allocations: 19.92 kB / 274.7 MB, free: 15.46 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.37e-05/0.007281, allocations: 15.92 kB / 274.7 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001972/0.007478, allocations: 55.8 kB / 274.7 MB, free: 15.39 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.744e-06/0.007486, allocations: 4 kB / 274.7 MB, free: 15.38 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.007487, allocations: 0 / 274.7 MB, free: 15.38 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.007493, allocations: 7.938 kB / 274.7 MB, free: 15.38 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.0009052/0.008398, allocations: 301.9 kB / 275 MB, free: 15.05 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.718e-05/0.008445, allocations: 12.03 kB / 275.1 MB, free: 15.04 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002126/0.008658, allocations: 28.81 kB / 275.1 MB, free: 15.01 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003718/0.009029, allocations: 142.2 kB / 275.2 MB, free: 14.85 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.963e-05/0.009049, allocations: 8.375 kB / 275.2 MB, free: 14.84 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.222e-05/0.009061, allocations: 384 / 275.2 MB, free: 14.84 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003779/0.009439, allocations: 122.2 kB / 275.4 MB, free: 14.7 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.238e-06/0.009448, allocations: 0 / 275.4 MB, free: 14.7 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.176e-05/0.00946, allocations: 0 / 275.4 MB, free: 14.7 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.103e-05/0.009471, allocations: 4 kB / 275.4 MB, free: 14.7 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001149/0.009586, allocations: 23.92 kB / 275.4 MB, free: 14.67 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004565/0.01004, allocations: 206.3 kB / 275.6 MB, free: 14.43 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001704/0.01021, allocations: 75.72 kB / 275.7 MB, free: 14.33 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001037/0.01032, allocations: 42.56 kB / 275.7 MB, free: 14.28 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.38e-05/0.01034, allocations: 0 / 275.7 MB, free: 14.28 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.596e-05/0.01039, allocations: 38.56 kB / 275.7 MB, free: 14.23 MB / 266.7 MB Notification: Performance of pre-optimization done (n=4): time 1.012e-06/0.01039, allocations: 0 / 275.7 MB, free: 14.23 MB / 266.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003916/0.01078, allocations: 85.52 kB / 275.8 MB, free: 14.14 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001132/0.01089, allocations: 115.1 kB / 275.9 MB, free: 14.01 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002026/0.01109, allocations: 145.2 kB / 276.1 MB, free: 13.86 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.524e-05/0.01112, allocations: 29.7 kB / 276.1 MB, free: 13.82 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.584e-05/0.01121, allocations: 88.14 kB / 276.2 MB, free: 13.73 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.364e-05/0.01122, allocations: 0 / 276.2 MB, free: 13.73 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.061e-05/0.01127, allocations: 17.7 kB / 276.2 MB, free: 13.71 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002554/0.01153, allocations: 322.8 kB / 276.5 MB, free: 13.39 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.196e-05/0.01158, allocations: 4 kB / 276.5 MB, free: 13.38 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.018e-05/0.01162, allocations: 7.984 kB / 276.5 MB, free: 13.38 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001026/0.01172, allocations: 20.84 kB / 276.6 MB, free: 13.35 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.01172, allocations: 4.062 kB / 276.6 MB, free: 13.35 MB / 266.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001882/0.01191, allocations: 57.58 kB / 276.6 MB, free: 13.29 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.01193, allocations: 4 kB / 276.6 MB, free: 13.28 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.01193, allocations: 0 / 276.6 MB, free: 13.28 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.358e-05/0.01195, allocations: 3.938 kB / 276.6 MB, free: 13.28 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.409e-05/0.01203, allocations: 11.98 kB / 276.6 MB, free: 13.27 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.01203, allocations: 0 / 276.6 MB, free: 13.27 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.212e-05/0.01209, allocations: 4 kB / 276.6 MB, free: 13.26 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.252e-06/0.01209, allocations: 0 / 276.6 MB, free: 13.26 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 0.0001304/0.01222, allocations: 121.8 kB / 276.8 MB, free: 13.13 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001486/0.01237, allocations: 57.58 kB / 276.8 MB, free: 13.07 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.085e-05/0.01242, allocations: 11.97 kB / 276.8 MB, free: 13.06 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.656e-06/0.01243, allocations: 3.984 kB / 276.8 MB, free: 13.06 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.01244, allocations: 0 / 276.8 MB, free: 13.06 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.01244, allocations: 0 / 276.8 MB, free: 13.06 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002598/0.0127, allocations: 117.2 kB / 276.9 MB, free: 12.91 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.0127, allocations: 0 / 276.9 MB, free: 12.91 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.831e-05/0.01279, allocations: 11.98 kB / 277 MB, free: 12.9 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.015e-06/0.01279, allocations: 4.062 kB / 277 MB, free: 12.9 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.178e-05/0.01281, allocations: 11.98 kB / 277 MB, free: 12.89 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.01282, allocations: 0 / 277 MB, free: 12.89 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.01282, allocations: 0 / 277 MB, free: 12.89 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000324/0.01314, allocations: 181.1 kB / 277.1 MB, free: 12.69 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.459e-05/0.01321, allocations: 19.89 kB / 277.2 MB, free: 12.67 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.476e-05/0.01323, allocations: 4 kB / 277.2 MB, free: 12.66 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001419/0.01337, allocations: 4 kB / 277.2 MB, free: 12.66 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.563e-05/0.01341, allocations: 0 / 277.2 MB, free: 12.66 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.497e-06/0.01342, allocations: 4 kB / 277.2 MB, free: 12.66 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001362/0.01355, allocations: 111.2 kB / 277.3 MB, free: 12.55 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.01355, allocations: 0 / 277.3 MB, free: 12.55 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004344/0.01399, allocations: 8 kB / 277.3 MB, free: 12.54 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 0.0001617/0.01415, allocations: 99.23 kB / 277.4 MB, free: 12.43 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000194/0.01434, allocations: 27.92 kB / 277.4 MB, free: 12.4 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.01435, allocations: 0 / 277.4 MB, free: 12.4 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.63e-05/0.0144, allocations: 4 kB / 277.4 MB, free: 12.4 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005781/0.01498, allocations: 32.92 kB / 277.5 MB, free: 12.36 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005379/0.01552, allocations: 185 kB / 277.6 MB, free: 12.15 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001284/0.01565, allocations: 79.31 kB / 277.7 MB, free: 12.05 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.295e-05/0.01569, allocations: 4 kB / 277.7 MB, free: 12.05 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.886e-05/0.01573, allocations: 8.5 kB / 277.7 MB, free: 12.04 MB / 266.7 MB Notification: Performance of SimCode: time 4.61e-07/0.01573, allocations: 3.938 kB / 277.7 MB, free: 12.04 MB / 266.7 MB Notification: Performance of Templates: time 0.004543/0.02027, allocations: 0.6485 MB / 278.4 MB, free: 11.41 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/SubSample/SubSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.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.408906772034243]