Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.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.001501/0.001501, allocations: 107.5 kB / 20.44 MB, free: 1.203 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.001486/0.001486, allocations: 184 kB / 23.7 MB, free: 4.434 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.475/1.475, allocations: 225.7 MB / 252.5 MB, free: 12.82 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.RealSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001597/0.001597, allocations: 51.92 kB / 370.9 MB, free: 9.168 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2783/0.2799, allocations: 52.18 MB / 423.1 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample): time 0.003063/0.283, allocations: 1.592 MB / 424.7 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009035/0.2839, allocations: 438.9 kB / 425.1 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.937e-05/0.2839, allocations: 3.938 kB / 425.1 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.013e-05/0.284, allocations: 7.922 kB / 425.1 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001283/0.2841, allocations: 15.86 kB / 425.1 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002654/0.2844, allocations: 47.89 kB / 425.2 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001129/0.2845, allocations: 47.84 kB / 425.2 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.193e-05/0.2846, allocations: 8.188 kB / 425.2 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.435e-05/0.2847, allocations: 27.84 kB / 425.3 MB, free: 12.28 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.56e-05/0.2847, allocations: 19.92 kB / 425.3 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.543e-05/0.2847, allocations: 3.938 kB / 425.3 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.343e-05/0.2847, allocations: 7.938 kB / 425.3 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.701e-05/0.2848, allocations: 11.98 kB / 425.3 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.641e-05/0.2848, allocations: 19.81 kB / 425.3 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001241/0.285, allocations: 57.98 kB / 425.4 MB, free: 12.16 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.285, allocations: 4 kB / 425.4 MB, free: 12.16 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.285, allocations: 4 kB / 425.4 MB, free: 12.16 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.608e-06/0.285, allocations: 0 / 425.4 MB, free: 12.16 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.000485/0.2854, allocations: 298 kB / 425.7 MB, free: 11.84 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.441e-05/0.2855, allocations: 12.03 kB / 425.7 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.039e-05/0.2855, allocations: 8.891 kB / 425.7 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002559/0.2858, allocations: 149.2 kB / 425.8 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.204e-05/0.2858, allocations: 4.375 kB / 425.8 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.119e-05/0.2858, allocations: 12.25 kB / 425.9 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002789/0.2861, allocations: 118 kB / 426 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.335e-06/0.2861, allocations: 0 / 426 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.106e-06/0.2861, allocations: 0 / 426 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.004e-05/0.2861, allocations: 8 kB / 426 MB, free: 11.49 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.914e-05/0.2862, allocations: 19.98 kB / 426 MB, free: 11.47 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003/0.2865, allocations: 218.3 kB / 426.2 MB, free: 11.22 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001249/0.2866, allocations: 75.72 kB / 426.3 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.954e-05/0.2867, allocations: 34.62 kB / 426.3 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.629e-05/0.2867, allocations: 0 / 426.3 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.533e-05/0.2867, allocations: 38.56 kB / 426.4 MB, free: 11.03 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 9.52e-07/0.2867, allocations: 0 / 426.4 MB, free: 11.03 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002592/0.287, allocations: 81.5 kB / 426.4 MB, free: 10.94 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.049e-05/0.2871, allocations: 115.2 kB / 426.5 MB, free: 10.8 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001369/0.2872, allocations: 141.8 kB / 426.7 MB, free: 10.66 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.725e-05/0.2872, allocations: 25.7 kB / 426.7 MB, free: 10.62 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.119e-05/0.2873, allocations: 88.12 kB / 426.8 MB, free: 10.54 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.568e-05/0.2873, allocations: 11.89 kB / 426.8 MB, free: 10.52 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.568e-05/0.2873, allocations: 17.72 kB / 426.8 MB, free: 10.5 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000142/0.2875, allocations: 318.8 kB / 427.1 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.164e-05/0.2875, allocations: 8 kB / 427.1 MB, free: 10.17 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.64e-05/0.2876, allocations: 35.42 kB / 427.2 MB, free: 10.12 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.829e-05/0.2877, allocations: 47.36 kB / 427.2 MB, free: 10.07 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.65e-06/0.2877, allocations: 7.938 kB / 427.2 MB, free: 10.06 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001385/0.2878, allocations: 73.5 kB / 427.3 MB, free: 9.98 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/0.2878, allocations: 8 kB / 427.3 MB, free: 9.973 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.099e-06/0.2878, allocations: 0 / 427.3 MB, free: 9.973 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.487e-05/0.2879, allocations: 4.125 kB / 427.3 MB, free: 9.969 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.742e-05/0.2879, allocations: 8 kB / 427.3 MB, free: 9.961 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.355e-06/0.2879, allocations: 4 kB / 427.3 MB, free: 9.957 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.549e-05/0.288, allocations: 7.922 kB / 427.3 MB, free: 9.949 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.638e-06/0.288, allocations: 4 kB / 427.3 MB, free: 9.945 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (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 prepare postOptimizeDAE: time 0.0001007/0.2881, allocations: 117.8 kB / 427.5 MB, free: 9.82 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.713e-05/0.2882, allocations: 57.58 kB / 427.5 MB, free: 9.758 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.622e-05/0.2882, allocations: 11.97 kB / 427.5 MB, free: 9.742 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.2882, allocations: 4.078 kB / 427.5 MB, free: 9.738 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.688e-06/0.2882, allocations: 4.062 kB / 427.5 MB, free: 9.734 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.2882, allocations: 0 / 427.5 MB, free: 9.734 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000167/0.2884, allocations: 125.2 kB / 427.7 MB, free: 9.582 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.2884, allocations: 0 / 427.7 MB, free: 9.582 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.014e-05/0.2885, allocations: 8 kB / 427.7 MB, free: 9.574 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.764e-06/0.2885, allocations: 0 / 427.7 MB, free: 9.574 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.083e-05/0.2885, allocations: 11.92 kB / 427.7 MB, free: 9.562 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.417e-06/0.2885, allocations: 3.938 kB / 427.7 MB, free: 9.559 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.2885, allocations: 0 / 427.7 MB, free: 9.559 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002403/0.2887, allocations: 177.1 kB / 427.9 MB, free: 9.363 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.858e-05/0.2888, allocations: 15.95 kB / 427.9 MB, free: 9.348 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.977e-05/0.2888, allocations: 7.984 kB / 427.9 MB, free: 9.34 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.907e-05/0.2889, allocations: 0 / 427.9 MB, free: 9.34 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.665e-05/0.2889, allocations: 8 kB / 427.9 MB, free: 9.332 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.171e-06/0.2889, allocations: 4 kB / 427.9 MB, free: 9.328 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.596e-05/0.289, allocations: 110.2 kB / 428 MB, free: 9.223 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.289, allocations: 4 kB / 428 MB, free: 9.219 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002395/0.2892, allocations: 7.938 kB / 428 MB, free: 9.211 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: 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.0001316/0.2894, allocations: 99.19 kB / 428.1 MB, free: 9.105 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001648/0.2895, allocations: 35.91 kB / 428.1 MB, free: 9.07 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.2895, allocations: 4 kB / 428.1 MB, free: 9.066 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.919e-05/0.2896, allocations: 8 kB / 428.1 MB, free: 9.059 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003697/0.2899, allocations: 23.95 kB / 428.2 MB, free: 9.035 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004/0.2903, allocations: 188.7 kB / 428.4 MB, free: 8.816 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001032/0.2905, allocations: 83.69 kB / 428.4 MB, free: 8.715 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.571e-05/0.2905, allocations: 3.984 kB / 428.4 MB, free: 8.711 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.386e-05/0.2905, allocations: 11.44 kB / 428.5 MB, free: 8.699 MB / 334.1 MB Notification: Performance of SimCode: time 2.71e-07/0.2905, allocations: 0 / 428.5 MB, free: 8.699 MB / 334.1 MB Notification: Performance of Templates: time 0.003603/0.2941, allocations: 0.6651 MB / 429.1 MB, free: 8.051 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SubSample/SubSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.504311727359891]