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.001146/0.001146, allocations: 80.8 kB / 21.49 MB, free: 2.996 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.001198/0.001198, allocations: 166.9 kB / 24.91 MB, free: 9.152 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 0.9667/0.9667, allocations: 177.1 MB / 205.3 MB, free: 5.465 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.044e-06/2.044e-06, allocations: 4 kB / 273.4 MB, free: 1.301 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.032e-05/1.236e-05, allocations: 2.312 kB / 273.4 MB, free: 1.297 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.002175/0.002188, allocations: 1.932 MB / 275.4 MB, free: 15.35 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001493/0.003681, allocations: 1.264 MB / 276.6 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.708e-05/0.003778, allocations: 4 kB / 276.6 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002468/0.004025, allocations: 59.66 kB / 276.7 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002758/0.004301, allocations: 143.2 kB / 276.8 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004315/0.004732, allocations: 227.2 kB / 277.1 MB, free: 13.65 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001798/0.004912, allocations: 179.5 kB / 277.2 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.351e-05/0.004985, allocations: 22.45 kB / 277.3 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001178/0.005103, allocations: 107.7 kB / 277.4 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.101e-05/0.005184, allocations: 63.8 kB / 277.4 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.664e-05/0.005201, allocations: 8 kB / 277.4 MB, free: 13.28 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001152/0.005316, allocations: 71.88 kB / 277.5 MB, free: 13.21 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.89e-05/0.005375, allocations: 59.77 kB / 277.6 MB, free: 13.15 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.967e-05/0.005415, allocations: 35.84 kB / 277.6 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00021/0.005625, allocations: 191.3 kB / 277.8 MB, free: 12.93 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.433e-06/0.005626, allocations: 4 kB / 277.8 MB, free: 12.93 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.71e-07/0.005627, allocations: 0 / 277.8 MB, free: 12.93 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.557e-06/0.00563, allocations: 0 / 277.8 MB, free: 12.93 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.0004283/0.006059, allocations: 449 kB / 278.2 MB, free: 12.46 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.683e-05/0.006085, allocations: 12.03 kB / 278.2 MB, free: 12.45 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.611e-05/0.006122, allocations: 28.91 kB / 278.3 MB, free: 12.42 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001777/0.006299, allocations: 196.8 kB / 278.5 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.238e-05/0.006312, allocations: 4.375 kB / 278.5 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.28e-05/0.006324, allocations: 12.31 kB / 278.5 MB, free: 12.19 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001634/0.006488, allocations: 145.9 kB / 278.6 MB, free: 12.02 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.683e-06/0.006494, allocations: 3.938 kB / 278.6 MB, free: 12.02 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.165e-06/0.006503, allocations: 4 kB / 278.6 MB, free: 12.01 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.576e-06/0.006506, allocations: 0 / 278.6 MB, free: 12.01 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.468e-05/0.006541, allocations: 22.8 kB / 278.6 MB, free: 11.99 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002197/0.006761, allocations: 207.5 kB / 278.8 MB, free: 11.76 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000105/0.006866, allocations: 141.4 kB / 279 MB, free: 11.59 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.685e-05/0.006892, allocations: 26.56 kB / 279 MB, free: 11.56 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.313e-05/0.006905, allocations: 7.938 kB / 279 MB, free: 11.55 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.895e-05/0.006984, allocations: 74.12 kB / 279.1 MB, free: 11.46 MB / 266.7 MB Notification: Performance of pre-optimization done (n=9): time 9.32e-07/0.006985, allocations: 0 / 279.1 MB, free: 11.46 MB / 266.7 MB Notification: Performance of matching and sorting (n=9): time 0.0001272/0.007113, allocations: 89.81 kB / 279.2 MB, free: 11.37 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.991e-05/0.007153, allocations: 106.8 kB / 279.3 MB, free: 11.24 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001486/0.007301, allocations: 258.7 kB / 279.5 MB, free: 10.97 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.488e-05/0.007316, allocations: 25.7 kB / 279.6 MB, free: 10.94 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.91e-05/0.007355, allocations: 108.6 kB / 279.7 MB, free: 10.83 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.684e-05/0.007372, allocations: 19.81 kB / 279.7 MB, free: 10.81 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.133e-05/0.007403, allocations: 33.59 kB / 279.7 MB, free: 10.77 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.806e-05/0.007481, allocations: 334.8 kB / 280 MB, free: 10.44 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.41e-05/0.007495, allocations: 6.828 kB / 280 MB, free: 10.43 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.125e-05/0.007527, allocations: 56.25 kB / 280.1 MB, free: 10.36 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.012e-05/0.007567, allocations: 39.42 kB / 280.1 MB, free: 10.31 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.007568, allocations: 0 / 280.1 MB, free: 10.31 MB / 266.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 6.619e-05/0.007634, allocations: 80.69 kB / 280.2 MB, free: 10.23 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.896e-06/0.007643, allocations: 4 kB / 280.2 MB, free: 10.22 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.887e-06/0.007647, allocations: 0 / 280.2 MB, free: 10.22 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.768e-06/0.007657, allocations: 0 / 280.2 MB, free: 10.22 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.31e-05/0.00771, allocations: 15.98 kB / 280.2 MB, free: 10.21 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.535e-06/0.007713, allocations: 0 / 280.2 MB, free: 10.21 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.27e-05/0.007745, allocations: 7.938 kB / 280.2 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.531e-06/0.007751, allocations: 8.031 kB / 280.3 MB, free: 10.19 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 6.194e-05/0.007813, allocations: 123 kB / 280.4 MB, free: 10.06 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.564e-05/0.007848, allocations: 53.62 kB / 280.4 MB, free: 10 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.067e-05/0.007939, allocations: 79.38 kB / 280.5 MB, free: 9.918 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.007942, allocations: 4 kB / 280.5 MB, free: 9.914 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.313e-06/0.007943, allocations: 0 / 280.5 MB, free: 9.914 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.287e-06/0.007946, allocations: 0 / 280.5 MB, free: 9.914 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.868e-05/0.008035, allocations: 121.8 kB / 280.6 MB, free: 9.777 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.51e-07/0.008036, allocations: 0 / 280.6 MB, free: 9.777 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.197e-05/0.008068, allocations: 16.05 kB / 280.6 MB, free: 9.762 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.302e-06/0.008069, allocations: 4 kB / 280.6 MB, free: 9.758 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.563e-06/0.008076, allocations: 3.938 kB / 280.7 MB, free: 9.754 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.008078, allocations: 4 kB / 280.7 MB, free: 9.75 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.008079, allocations: 3.938 kB / 280.7 MB, free: 9.746 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.301e-05/0.008152, allocations: 104.5 kB / 280.8 MB, free: 9.617 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.89e-05/0.008191, allocations: 23.86 kB / 280.8 MB, free: 9.594 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.025e-05/0.008212, allocations: 15.92 kB / 280.8 MB, free: 9.578 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.706e-05/0.008239, allocations: 0 / 280.8 MB, free: 9.578 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.083e-05/0.008269, allocations: 11.98 kB / 280.8 MB, free: 9.566 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.063e-05/0.00828, allocations: 8 kB / 280.8 MB, free: 9.559 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.397e-05/0.008354, allocations: 105.6 kB / 280.9 MB, free: 9.453 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008354, allocations: 0 / 280.9 MB, free: 9.453 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001358/0.00849, allocations: 31.88 kB / 281 MB, free: 9.422 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.0009668/0.009457, allocations: 0.5204 MB / 281.5 MB, free: 9.133 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 8.479e-05/0.009541, allocations: 40.78 kB / 281.5 MB, free: 9.09 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.009545, allocations: 4 kB / 281.5 MB, free: 9.086 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.299e-05/0.009578, allocations: 28.89 kB / 281.5 MB, free: 9.055 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000169/0.009747, allocations: 57.95 kB / 281.6 MB, free: 8.992 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003345/0.01008, allocations: 339.4 kB / 281.9 MB, free: 8.625 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.157e-05/0.01012, allocations: 83.97 kB / 282 MB, free: 8.523 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.115e-05/0.01016, allocations: 17.48 kB / 282 MB, free: 8.508 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.146e-05/0.01025, allocations: 87.55 kB / 282.1 MB, free: 8.422 MB / 266.7 MB Notification: Performance of SimCode: time 4.81e-07/0.01025, allocations: 0 / 282.1 MB, free: 8.422 MB / 266.7 MB Notification: Performance of Templates: time 0.004586/0.01483, allocations: 3.141 MB / 285.3 MB, free: 5.336 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.680120461154729]