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.0008968/0.0008968, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001375/0.002272, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0008054/0.0008054, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001092/0.001897, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.091/1.091, allocations: 177.2 MB / 189.8 MB, free: 5.254 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1132/1.204, allocations: 53.66 MB / 243.4 MB, free: 15.51 MB / 250.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.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 1.403e-06/1.403e-06, allocations: 0 / 244.7 MB, free: 14.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.088e-05/1.228e-05, allocations: 2.312 kB / 244.7 MB, free: 14.22 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample): time 0.002233/0.002245, allocations: 1.696 MB / 246.4 MB, free: 12.51 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007095/0.002955, allocations: 0.542 MB / 247 MB, free: 11.96 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.557e-05/0.003031, allocations: 4 kB / 247 MB, free: 11.96 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 4.336e-05/0.003074, allocations: 7.875 kB / 247 MB, free: 11.95 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 7.892e-05/0.003153, allocations: 11.92 kB / 247 MB, free: 11.94 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000217/0.00337, allocations: 63.73 kB / 247 MB, free: 11.88 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.005133/0.008503, allocations: 47.8 kB / 247.1 MB, free: 11.83 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.766e-05/0.008581, allocations: 8.188 kB / 247.1 MB, free: 11.82 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001363/0.008717, allocations: 47.83 kB / 247.1 MB, free: 11.78 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.535e-05/0.008773, allocations: 11.98 kB / 247.1 MB, free: 11.77 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.718e-05/0.00879, allocations: 0 / 247.1 MB, free: 11.77 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.765e-05/0.008847, allocations: 12 kB / 247.2 MB, free: 11.75 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.226e-05/0.00889, allocations: 19.92 kB / 247.2 MB, free: 11.73 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.2e-05/0.008912, allocations: 11.94 kB / 247.2 MB, free: 11.72 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001164/0.009028, allocations: 43.72 kB / 247.2 MB, free: 11.68 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.115e-05/0.009039, allocations: 4 kB / 247.2 MB, free: 11.68 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.71e-07/0.00904, allocations: 0 / 247.2 MB, free: 11.68 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.127e-06/0.009049, allocations: 0 / 247.2 MB, free: 11.68 MB / 250.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.0004076/0.009456, allocations: 292.3 kB / 247.5 MB, free: 11.37 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.396e-05/0.00949, allocations: 15.97 kB / 247.5 MB, free: 11.35 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001464/0.009637, allocations: 90.03 kB / 247.6 MB, free: 11.25 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001699/0.009807, allocations: 146.2 kB / 247.8 MB, free: 11.08 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.315e-06/0.009815, allocations: 4.375 kB / 247.8 MB, free: 11.07 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.248e-06/0.009824, allocations: 384 / 247.8 MB, free: 11.07 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001756/0.01, allocations: 126.9 kB / 247.9 MB, free: 10.93 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.01001, allocations: 0 / 247.9 MB, free: 10.93 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.714e-06/0.01002, allocations: 4 kB / 247.9 MB, free: 10.92 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.222e-06/0.01002, allocations: 4 kB / 247.9 MB, free: 10.92 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.888e-05/0.01004, allocations: 7.938 kB / 247.9 MB, free: 10.91 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001796/0.01022, allocations: 158 kB / 248.1 MB, free: 10.73 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.493e-05/0.01029, allocations: 63.78 kB / 248.1 MB, free: 10.64 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.486e-05/0.01031, allocations: 22.62 kB / 248.2 MB, free: 10.61 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.061e-05/0.01033, allocations: 7.875 kB / 248.2 MB, free: 10.61 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.649e-05/0.01036, allocations: 38.5 kB / 248.2 MB, free: 10.56 MB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 1.072e-06/0.01036, allocations: 0 / 248.2 MB, free: 10.56 MB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001265/0.01048, allocations: 57.62 kB / 248.3 MB, free: 10.5 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.293e-05/0.01054, allocations: 110.8 kB / 248.4 MB, free: 10.36 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.819e-05/0.01063, allocations: 145.8 kB / 248.5 MB, free: 10.21 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.066e-05/0.01064, allocations: 25.7 kB / 248.5 MB, free: 10.18 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.374e-05/0.01067, allocations: 84.14 kB / 248.6 MB, free: 10.09 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.447e-05/0.01068, allocations: 7.891 kB / 248.6 MB, free: 10.09 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.773e-05/0.01071, allocations: 13.72 kB / 248.6 MB, free: 10.07 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.496e-05/0.0108, allocations: 322.8 kB / 248.9 MB, free: 9.742 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.404e-06/0.0108, allocations: 384 / 248.9 MB, free: 9.742 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.082e-06/0.01081, allocations: 4 kB / 249 MB, free: 9.738 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.194e-05/0.01083, allocations: 8.859 kB / 249 MB, free: 9.727 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.01083, allocations: 0 / 249 MB, free: 9.727 MB / 250.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.721e-05/0.01088, allocations: 41.56 kB / 249 MB, free: 9.68 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.201e-05/0.01089, allocations: 8 kB / 249 MB, free: 9.672 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.748e-06/0.0109, allocations: 0 / 249 MB, free: 9.672 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.077e-05/0.01091, allocations: 0 / 249 MB, free: 9.672 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.057e-05/0.01096, allocations: 4 kB / 249 MB, free: 9.668 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.765e-06/0.01096, allocations: 0 / 249 MB, free: 9.668 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.854e-05/0.01098, allocations: 8.078 kB / 249 MB, free: 9.66 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.959e-06/0.01099, allocations: 0 / 249 MB, free: 9.66 MB / 250.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.414e-05/0.01104, allocations: 116.7 kB / 249.1 MB, free: 9.535 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.6e-05/0.01109, allocations: 45.56 kB / 249.2 MB, free: 9.484 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.749e-05/0.01111, allocations: 11.97 kB / 249.2 MB, free: 9.473 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.01111, allocations: 0 / 249.2 MB, free: 9.473 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.01112, allocations: 4 kB / 249.2 MB, free: 9.469 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.01112, allocations: 0 / 249.2 MB, free: 9.469 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001079/0.01123, allocations: 73.88 kB / 249.3 MB, free: 9.379 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.01123, allocations: 0 / 249.3 MB, free: 9.379 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00304/0.01427, allocations: 16.05 kB / 249.3 MB, free: 9.363 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.192e-05/0.0143, allocations: 19.88 kB / 249.3 MB, free: 9.344 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.544e-06/0.0143, allocations: 0 / 249.3 MB, free: 9.344 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.912e-06/0.01431, allocations: 3.984 kB / 249.3 MB, free: 9.34 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.01431, allocations: 4 kB / 249.3 MB, free: 9.336 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.01431, allocations: 3.938 kB / 249.3 MB, free: 9.332 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.197e-05/0.0144, allocations: 145.2 kB / 249.5 MB, free: 9.168 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.196e-05/0.01441, allocations: 7.938 kB / 249.5 MB, free: 9.16 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.002e-05/0.01446, allocations: 4 kB / 249.5 MB, free: 9.156 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.221e-05/0.01448, allocations: 8.031 kB / 249.5 MB, free: 9.148 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.416e-06/0.01448, allocations: 0 / 249.5 MB, free: 9.148 MB / 250.7 MB Notification: Performance of sorting global known variables: time 3.349e-05/0.01452, allocations: 32.83 kB / 249.5 MB, free: 9.113 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01452, allocations: 0 / 249.5 MB, free: 9.113 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001735/0.01469, allocations: 11.94 kB / 249.5 MB, free: 9.102 MB / 250.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 7.522e-05/0.01477, allocations: 76.42 kB / 249.6 MB, free: 9.016 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 5.716e-05/0.01482, allocations: 12.8 kB / 249.6 MB, free: 9 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.06e-06/0.01483, allocations: 4 kB / 249.6 MB, free: 8.996 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.713e-05/0.01485, allocations: 8.953 kB / 249.6 MB, free: 8.984 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002705/0.01512, allocations: 120.6 kB / 249.7 MB, free: 8.848 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007531/0.01587, allocations: 187.8 kB / 249.9 MB, free: 8.633 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.716e-05/0.01592, allocations: 63.34 kB / 250 MB, free: 8.551 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.03e-05/0.01594, allocations: 3.938 kB / 250 MB, free: 8.547 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.908e-05/0.016, allocations: 63.3 kB / 250 MB, free: 8.484 MB / 250.7 MB Notification: Performance of SimCode: time 3.91e-07/0.016, allocations: 352 / 250 MB, free: 8.484 MB / 250.7 MB Notification: Performance of Templates: time 0.005411/0.02141, allocations: 0.6881 MB / 250.7 MB, free: 7.816 MB / 250.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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8098058998584747]