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.001444/0.001444, allocations: 112.2 kB / 21.19 MB, free: 0.7617 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.001626/0.001626, allocations: 209.9 kB / 24.49 MB, free: 4.145 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.54/1.54, allocations: 230.6 MB / 258.3 MB, free: 7.996 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.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 0.001836/0.001836, allocations: 51.92 kB / 379 MB, free: 2.613 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3309/0.3327, allocations: 53.35 MB / 432.4 MB, free: 6.918 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample): time 0.003253/0.336, allocations: 1.617 MB / 434 MB, free: 5.297 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001131/0.3371, allocations: 0.5453 MB / 434.6 MB, free: 4.746 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001114/0.3372, allocations: 4 kB / 434.6 MB, free: 4.742 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.391e-05/0.3373, allocations: 15.81 kB / 434.6 MB, free: 4.727 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001672/0.3375, allocations: 11.86 kB / 434.6 MB, free: 4.715 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000346/0.3378, allocations: 62.69 kB / 434.6 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001515/0.338, allocations: 47.84 kB / 434.7 MB, free: 4.609 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001174/0.3381, allocations: 8.188 kB / 434.7 MB, free: 4.602 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001403/0.3382, allocations: 39.78 kB / 434.7 MB, free: 4.562 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.985e-05/0.3383, allocations: 19.92 kB / 434.8 MB, free: 4.543 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.524e-05/0.3383, allocations: 0 / 434.8 MB, free: 4.543 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.782e-05/0.3384, allocations: 12 kB / 434.8 MB, free: 4.531 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.722e-05/0.3384, allocations: 19.92 kB / 434.8 MB, free: 4.512 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.608e-05/0.3385, allocations: 27.75 kB / 434.8 MB, free: 4.484 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001726/0.3386, allocations: 57 kB / 434.9 MB, free: 4.434 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.3387, allocations: 0 / 434.9 MB, free: 4.434 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.288e-06/0.3387, allocations: 4 kB / 434.9 MB, free: 4.43 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.663e-06/0.3387, allocations: 0 / 434.9 MB, free: 4.43 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.000555/0.3392, allocations: 305.9 kB / 435.2 MB, free: 4.102 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.985e-05/0.3393, allocations: 12.03 kB / 435.2 MB, free: 4.09 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001964/0.3395, allocations: 16.89 kB / 435.2 MB, free: 4.074 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003019/0.3398, allocations: 154.8 kB / 435.4 MB, free: 3.898 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.501e-05/0.3398, allocations: 4.375 kB / 435.4 MB, free: 3.895 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.681e-05/0.3398, allocations: 7.938 kB / 435.4 MB, free: 3.887 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003353/0.3401, allocations: 113.9 kB / 435.5 MB, free: 3.754 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.3401, allocations: 0 / 435.5 MB, free: 3.754 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.484e-05/0.3402, allocations: 7.984 kB / 435.5 MB, free: 3.746 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/0.3402, allocations: 0 / 435.5 MB, free: 3.746 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.818e-05/0.3403, allocations: 23.92 kB / 435.5 MB, free: 3.723 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004186/0.3407, allocations: 245.7 kB / 435.8 MB, free: 3.434 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001274/0.3408, allocations: 63.78 kB / 435.8 MB, free: 3.344 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.74e-05/0.3409, allocations: 30.64 kB / 435.8 MB, free: 3.305 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.668e-05/0.3409, allocations: 4 kB / 435.8 MB, free: 3.301 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.564e-05/0.3409, allocations: 46.48 kB / 435.9 MB, free: 3.246 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.032e-06/0.3409, allocations: 4 kB / 435.9 MB, free: 3.242 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002872/0.3412, allocations: 81.52 kB / 436 MB, free: 3.156 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001031/0.3413, allocations: 111.2 kB / 436.1 MB, free: 3.023 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001568/0.3415, allocations: 155.4 kB / 436.2 MB, free: 2.863 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.993e-05/0.3415, allocations: 25.7 kB / 436.3 MB, free: 2.832 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.375e-05/0.3416, allocations: 84.14 kB / 436.3 MB, free: 2.746 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.522e-05/0.3416, allocations: 11.98 kB / 436.4 MB, free: 2.734 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.264e-05/0.3416, allocations: 25.59 kB / 436.4 MB, free: 2.703 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.3418, allocations: 314.8 kB / 436.7 MB, free: 2.387 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.587e-05/0.3418, allocations: 11.98 kB / 436.7 MB, free: 2.375 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.483e-05/0.3419, allocations: 39.38 kB / 436.7 MB, free: 2.324 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001046/0.342, allocations: 43.36 kB / 436.8 MB, free: 2.27 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.342, allocations: 7.938 kB / 436.8 MB, free: 2.262 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001374/0.3421, allocations: 69.61 kB / 436.9 MB, free: 2.188 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.3422, allocations: 4 kB / 436.9 MB, free: 2.184 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.3422, allocations: 4 kB / 436.9 MB, free: 2.18 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-05/0.3422, allocations: 0 / 436.9 MB, free: 2.18 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.755e-05/0.3423, allocations: 11.98 kB / 436.9 MB, free: 2.168 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.3423, allocations: 0 / 436.9 MB, free: 2.168 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.266e-05/0.3423, allocations: 7.938 kB / 436.9 MB, free: 2.16 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.933e-06/0.3423, allocations: 4.125 kB / 436.9 MB, free: 2.156 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.0001184/0.3424, allocations: 125.8 kB / 437 MB, free: 2.023 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.69e-05/0.3425, allocations: 49.61 kB / 437.1 MB, free: 1.969 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.957e-05/0.3426, allocations: 15.95 kB / 437.1 MB, free: 1.949 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.3426, allocations: 0 / 437.1 MB, free: 1.949 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.776e-06/0.3426, allocations: 4 kB / 437.1 MB, free: 1.945 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.3426, allocations: 3.938 kB / 437.1 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001953/0.3428, allocations: 140.7 kB / 437.2 MB, free: 1.762 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.3428, allocations: 4.062 kB / 437.2 MB, free: 1.758 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.263e-05/0.3428, allocations: 15.92 kB / 437.2 MB, free: 1.742 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.3428, allocations: 0 / 437.2 MB, free: 1.742 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.314e-06/0.3428, allocations: 0 / 437.2 MB, free: 1.742 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.3428, allocations: 4 kB / 437.2 MB, free: 1.738 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.3428, allocations: 0 / 437.2 MB, free: 1.738 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002235/0.3431, allocations: 181.1 kB / 437.4 MB, free: 1.539 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.39e-05/0.3431, allocations: 23.88 kB / 437.4 MB, free: 1.516 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.53e-05/0.3431, allocations: 0 / 437.4 MB, free: 1.516 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.897e-05/0.3432, allocations: 4 kB / 437.4 MB, free: 1.512 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.186e-05/0.3432, allocations: 12 kB / 437.5 MB, free: 1.5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.667e-06/0.3432, allocations: 0 / 437.5 MB, free: 1.5 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.628e-05/0.3433, allocations: 109.3 kB / 437.6 MB, free: 1.395 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3433, allocations: 0 / 437.6 MB, free: 1.395 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002275/0.3436, allocations: 8 kB / 437.6 MB, free: 1.387 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.000115/0.3437, allocations: 111.2 kB / 437.7 MB, free: 1.27 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001612/0.3438, allocations: 31.92 kB / 437.7 MB, free: 1.238 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3438, allocations: 0 / 437.7 MB, free: 1.238 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.874e-05/0.3439, allocations: 11.98 kB / 437.7 MB, free: 1.227 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003741/0.3443, allocations: 28.52 kB / 437.8 MB, free: 1.199 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004084/0.3447, allocations: 218.2 kB / 438 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000369/0.345, allocations: 0.6923 MB / 438.7 MB, free: 236 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.829e-05/0.3451, allocations: 11.44 kB / 438.7 MB, free: 224 kB / 334.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3451, allocations: 0 / 438.7 MB, free: 224 kB / 334.1 MB Notification: Performance of Templates: time 0.00283/0.3479, allocations: 0.8472 MB / 439.5 MB, free: 15.38 MB / 350.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/SubSample/SubSample.csv","/var/lib/jenkins1/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: 6.96347901201807]