Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.001069/0.001069, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.001027/0.001027, allocations: 168.8 kB / 24.82 MB, free: 9.27 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 1.002/1.002, allocations: 177.1 MB / 205.3 MB, free: 5.508 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.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5013,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5013,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.455e-06/2.455e-06, allocations: 0 / 273.4 MB, free: 1.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.05e-05/3.295e-05, allocations: 5.266 kB / 273.4 MB, free: 1.316 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.002951/0.002984, allocations: 1.924 MB / 275.3 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002048/0.005032, allocations: 1.223 MB / 276.5 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001661/0.005198, allocations: 4 kB / 276.5 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003494/0.005547, allocations: 67.61 kB / 276.6 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000378/0.005925, allocations: 143.2 kB / 276.7 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007845/0.00671, allocations: 235.2 kB / 277 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003273/0.007037, allocations: 183.5 kB / 277.1 MB, free: 13.52 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001252/0.007162, allocations: 25.78 kB / 277.2 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001635/0.007326, allocations: 107.7 kB / 277.3 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001135/0.007439, allocations: 63.86 kB / 277.3 MB, free: 13.33 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.307e-05/0.007462, allocations: 8 kB / 277.3 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001633/0.007626, allocations: 71.88 kB / 277.4 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.524e-05/0.007701, allocations: 55.77 kB / 277.5 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.624e-05/0.007747, allocations: 35.88 kB / 277.5 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002819/0.008029, allocations: 195.2 kB / 277.7 MB, free: 12.97 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.008034, allocations: 0 / 277.7 MB, free: 12.97 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.008035, allocations: 0 / 277.7 MB, free: 12.97 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.97e-06/0.00804, allocations: 0 / 277.7 MB, free: 12.97 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0005904/0.00863, allocations: 0.571 MB / 278.3 MB, free: 12.36 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/0.008672, allocations: 8.031 kB / 278.3 MB, free: 12.35 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.01e-05/0.008733, allocations: 28.8 kB / 278.3 MB, free: 12.32 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002397/0.008972, allocations: 223.6 kB / 278.5 MB, free: 12.08 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.813e-05/0.00899, allocations: 4.375 kB / 278.5 MB, free: 12.08 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.443e-05/0.009005, allocations: 16.31 kB / 278.5 MB, free: 12.06 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002391/0.009244, allocations: 145.2 kB / 278.7 MB, free: 11.89 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.797e-06/0.009253, allocations: 3.938 kB / 278.7 MB, free: 11.89 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.987e-06/0.009262, allocations: 3.938 kB / 278.7 MB, free: 11.88 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.009269, allocations: 7.984 kB / 278.7 MB, free: 11.88 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.885e-05/0.009308, allocations: 19.97 kB / 278.7 MB, free: 11.86 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003843/0.009692, allocations: 327.7 kB / 279 MB, free: 11.5 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001416/0.009834, allocations: 117.3 kB / 279.2 MB, free: 11.35 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.707e-05/0.009871, allocations: 35 kB / 279.2 MB, free: 11.3 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.474e-05/0.009896, allocations: 7.984 kB / 279.2 MB, free: 11.29 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001126/0.01001, allocations: 68.98 kB / 279.3 MB, free: 11.21 MB / 266.7 MB Notification: Performance of pre-optimization done (n=9): time 2.204e-06/0.01001, allocations: 0 / 279.3 MB, free: 11.21 MB / 266.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002203/0.01023, allocations: 121.5 kB / 279.4 MB, free: 11.09 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.812e-05/0.01029, allocations: 110.8 kB / 279.5 MB, free: 10.95 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002055/0.01049, allocations: 324.1 kB / 279.8 MB, free: 10.62 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.026e-05/0.01051, allocations: 29.7 kB / 279.8 MB, free: 10.58 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001661/0.01068, allocations: 182.8 kB / 280 MB, free: 10.4 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.806e-05/0.01071, allocations: 19.88 kB / 280 MB, free: 10.38 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.076e-05/0.01075, allocations: 27.38 kB / 280.1 MB, free: 10.34 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000309/0.01106, allocations: 0.5118 MB / 280.6 MB, free: 9.82 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.834e-05/0.01109, allocations: 4 kB / 280.6 MB, free: 9.816 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.03e-05/0.01116, allocations: 61 kB / 280.6 MB, free: 9.738 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.12e-05/0.01121, allocations: 47.38 kB / 280.7 MB, free: 9.684 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.01121, allocations: 256 / 280.7 MB, free: 9.684 MB / 266.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 9.75e-05/0.01131, allocations: 93.42 kB / 280.8 MB, free: 9.586 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.01132, allocations: 10.34 kB / 280.8 MB, free: 9.578 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.01133, allocations: 0 / 280.8 MB, free: 9.578 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.018e-05/0.01134, allocations: 0 / 280.8 MB, free: 9.578 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.221e-05/0.01141, allocations: 19.92 kB / 280.8 MB, free: 9.559 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.976e-06/0.01141, allocations: 0 / 280.8 MB, free: 9.559 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.105e-05/0.01146, allocations: 8.031 kB / 280.8 MB, free: 9.551 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.123e-06/0.01146, allocations: 4 kB / 280.8 MB, free: 9.547 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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 9.968e-05/0.01156, allocations: 159 kB / 281 MB, free: 9.383 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.944e-05/0.01163, allocations: 73.42 kB / 281 MB, free: 9.305 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001352/0.01177, allocations: 95.44 kB / 281.1 MB, free: 9.203 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.01177, allocations: 7.938 kB / 281.1 MB, free: 9.195 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.194e-06/0.01177, allocations: 0 / 281.1 MB, free: 9.195 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.01178, allocations: 0 / 281.1 MB, free: 9.195 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001245/0.0119, allocations: 157.1 kB / 281.3 MB, free: 9.016 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.0119, allocations: 4.062 kB / 281.3 MB, free: 9.012 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.618e-05/0.01195, allocations: 15.98 kB / 281.3 MB, free: 8.996 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.01195, allocations: 7.875 kB / 281.3 MB, free: 8.988 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.652e-06/0.01196, allocations: 4 kB / 281.3 MB, free: 8.984 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.01196, allocations: 0 / 281.3 MB, free: 8.984 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.01196, allocations: 0 / 281.3 MB, free: 8.984 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003163/0.01228, allocations: 147.6 kB / 281.5 MB, free: 8.809 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.954e-05/0.01233, allocations: 31.84 kB / 281.5 MB, free: 8.777 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.307e-05/0.01235, allocations: 11.92 kB / 281.5 MB, free: 8.766 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.847e-05/0.01239, allocations: 4 kB / 281.5 MB, free: 8.762 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.099e-05/0.01243, allocations: 15.98 kB / 281.5 MB, free: 8.746 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.404e-05/0.01245, allocations: 4 kB / 281.5 MB, free: 8.742 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001086/0.01255, allocations: 217.1 kB / 281.8 MB, free: 8.531 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01255, allocations: 0 / 281.8 MB, free: 8.531 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001814/0.01274, allocations: 31.94 kB / 281.8 MB, free: 8.5 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: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample1.y,sample1.y,subSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0008715/0.01361, allocations: 408.8 kB / 282.2 MB, free: 8.238 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001147/0.01372, allocations: 47.59 kB / 282.2 MB, free: 8.188 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.01372, allocations: 0 / 282.2 MB, free: 8.188 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.454e-05/0.01376, allocations: 27.67 kB / 282.3 MB, free: 8.156 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000264/0.01402, allocations: 72.33 kB / 282.3 MB, free: 8.086 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004194/0.01444, allocations: 349.4 kB / 282.7 MB, free: 7.711 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.79e-05/0.01449, allocations: 79.97 kB / 282.7 MB, free: 7.613 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.083e-05/0.01454, allocations: 17.48 kB / 282.8 MB, free: 7.598 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.281e-05/0.01463, allocations: 110.2 kB / 282.9 MB, free: 7.488 MB / 266.7 MB Notification: Performance of SimCode: time 6.61e-07/0.01463, allocations: 0 / 282.9 MB, free: 7.488 MB / 266.7 MB Notification: Performance of Templates: time 0.005275/0.01991, allocations: 3.145 MB / 286 MB, free: 4.387 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.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.8086929018609226]