Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.001099/0.001099, allocations: 82.28 kB / 22.21 MB, free: 2.293 MB / 18.57 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.001172/0.001172, allocations: 145.2 kB / 25.59 MB, free: 8.918 MB / 18.57 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 0.978/0.978, allocations: 173.4 MB / 202.2 MB, free: 8.277 MB / 186.7 MB " [Timeout remaining time 179] 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.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5013,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.282e-06/1.282e-06, allocations: 0 / 269.2 MB, free: 9.785 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.209e-05/2.337e-05, allocations: 5.125 kB / 269.2 MB, free: 9.781 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.002815/0.002839, allocations: 1.901 MB / 271.1 MB, free: 7.879 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0014/0.004239, allocations: 1.086 MB / 272.2 MB, free: 6.789 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001435/0.004382, allocations: 7.938 kB / 272.2 MB, free: 6.781 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003077/0.00469, allocations: 55.67 kB / 272.2 MB, free: 6.727 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002315/0.004921, allocations: 100.4 kB / 272.3 MB, free: 6.629 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005567/0.005478, allocations: 257.5 kB / 272.6 MB, free: 6.379 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000203/0.005681, allocations: 175.5 kB / 272.8 MB, free: 6.207 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.29e-05/0.005774, allocations: 21.73 kB / 272.8 MB, free: 6.184 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001162/0.00589, allocations: 96.69 kB / 272.9 MB, free: 6.09 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.251e-05/0.005983, allocations: 67.8 kB / 272.9 MB, free: 6.023 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.871e-05/0.006001, allocations: 8.531 kB / 273 MB, free: 6.016 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001252/0.006127, allocations: 77.77 kB / 273 MB, free: 5.941 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.198e-05/0.006189, allocations: 55.72 kB / 273.1 MB, free: 5.887 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.301e-05/0.006232, allocations: 39.84 kB / 273.1 MB, free: 5.848 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002256/0.006457, allocations: 183.3 kB / 273.3 MB, free: 5.668 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.074e-06/0.006459, allocations: 0 / 273.3 MB, free: 5.668 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.00646, allocations: 0 / 273.3 MB, free: 5.668 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.298e-06/0.006465, allocations: 1.281 kB / 273.3 MB, free: 5.668 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0004841/0.006949, allocations: 0.5594 MB / 273.9 MB, free: 5.066 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.259e-05/0.006981, allocations: 8.031 kB / 273.9 MB, free: 5.059 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.706e-05/0.007029, allocations: 33.25 kB / 273.9 MB, free: 5.027 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001998/0.007228, allocations: 222.1 kB / 274.1 MB, free: 4.789 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.526e-05/0.007244, allocations: 4.375 kB / 274.1 MB, free: 4.785 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.272e-05/0.007256, allocations: 8.375 kB / 274.1 MB, free: 4.777 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000193/0.007449, allocations: 149.8 kB / 274.3 MB, free: 4.602 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.007457, allocations: 3.938 kB / 274.3 MB, free: 4.598 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.039e-05/0.007468, allocations: 7.984 kB / 274.3 MB, free: 4.59 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5e-06/0.007473, allocations: 4 kB / 274.3 MB, free: 4.586 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.52e-05/0.007508, allocations: 15.92 kB / 274.3 MB, free: 4.57 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003073/0.007815, allocations: 315.7 kB / 274.6 MB, free: 4.227 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001232/0.007938, allocations: 117.3 kB / 274.7 MB, free: 4.074 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.922e-05/0.007978, allocations: 54.98 kB / 274.8 MB, free: 4.008 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.649e-05/0.007994, allocations: 3.938 kB / 274.8 MB, free: 4.004 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.215e-05/0.008086, allocations: 73.03 kB / 274.9 MB, free: 3.918 MB / 250.7 MB Notification: Performance of pre-optimization done (n=9): time 1.112e-06/0.008087, allocations: 0 / 274.9 MB, free: 3.918 MB / 250.7 MB Notification: Performance of matching and sorting (n=9): time 0.0001867/0.008274, allocations: 109.5 kB / 275 MB, free: 3.805 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.886e-05/0.008323, allocations: 110.8 kB / 275.1 MB, free: 3.672 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001759/0.008499, allocations: 316.2 kB / 275.4 MB, free: 3.344 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.776e-05/0.008517, allocations: 29.95 kB / 275.4 MB, free: 3.309 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.736e-05/0.008594, allocations: 186.8 kB / 275.6 MB, free: 3.121 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.026e-05/0.008614, allocations: 23.83 kB / 275.6 MB, free: 3.098 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.725e-05/0.008651, allocations: 35.31 kB / 275.7 MB, free: 3.055 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.008761, allocations: 0.504 MB / 276.2 MB, free: 2.539 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.767e-05/0.008779, allocations: 8 kB / 276.2 MB, free: 2.531 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.065e-05/0.00882, allocations: 68.73 kB / 276.2 MB, free: 2.445 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.632e-05/0.008866, allocations: 39.55 kB / 276.3 MB, free: 2.398 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.616e-06/0.008869, allocations: 8 kB / 276.3 MB, free: 2.391 MB / 250.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 9.014e-05/0.00896, allocations: 81.59 kB / 276.4 MB, free: 2.305 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.019e-05/0.00897, allocations: 4 kB / 276.4 MB, free: 2.301 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.008974, allocations: 0 / 276.4 MB, free: 2.301 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.482e-06/0.00898, allocations: 0 / 276.4 MB, free: 2.301 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.218e-05/0.009043, allocations: 23.92 kB / 276.4 MB, free: 2.277 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.305e-06/0.009045, allocations: 0 / 276.4 MB, free: 2.277 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.743e-05/0.009082, allocations: 7.953 kB / 276.4 MB, free: 2.27 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.43e-06/0.009088, allocations: 0 / 276.4 MB, free: 2.27 MB / 250.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 7.209e-05/0.00916, allocations: 160.6 kB / 276.6 MB, free: 2.102 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.034e-05/0.00921, allocations: 69.42 kB / 276.6 MB, free: 2.027 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001214/0.009332, allocations: 103.5 kB / 276.7 MB, free: 1.918 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.009334, allocations: 4 kB / 276.7 MB, free: 1.914 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.603e-06/0.009336, allocations: 0 / 276.7 MB, free: 1.914 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.009339, allocations: 0 / 276.7 MB, free: 1.914 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001118/0.009451, allocations: 149.2 kB / 276.9 MB, free: 1.742 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.009452, allocations: 0 / 276.9 MB, free: 1.742 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.023e-05/0.009492, allocations: 19.92 kB / 276.9 MB, free: 1.723 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.009496, allocations: 3.938 kB / 276.9 MB, free: 1.719 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.632e-06/0.009502, allocations: 4 kB / 276.9 MB, free: 1.715 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.953e-06/0.009504, allocations: 0 / 276.9 MB, free: 1.715 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.009505, allocations: 4 kB / 276.9 MB, free: 1.711 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00012/0.009625, allocations: 147.9 kB / 277 MB, free: 1.535 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.867e-05/0.009674, allocations: 43.77 kB / 277.1 MB, free: 1.492 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.98e-05/0.009694, allocations: 7.922 kB / 277.1 MB, free: 1.484 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.057e-05/0.009724, allocations: 4 kB / 277.1 MB, free: 1.48 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.378e-05/0.009758, allocations: 19.86 kB / 277.1 MB, free: 1.461 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.114e-05/0.009769, allocations: 4.062 kB / 277.1 MB, free: 1.457 MB / 250.7 MB Notification: Performance of sorting global known variables: time 9.737e-05/0.009866, allocations: 213.1 kB / 277.3 MB, free: 1.25 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.009867, allocations: 0 / 277.3 MB, free: 1.25 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001771/0.01004, allocations: 28 kB / 277.4 MB, free: 1.223 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: 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.0008342/0.01088, allocations: 407.9 kB / 277.8 MB, free: 0.9609 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 9.973e-05/0.01098, allocations: 43.61 kB / 277.8 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.01098, allocations: 0 / 277.8 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 3.875e-05/0.01102, allocations: 27.67 kB / 277.8 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002412/0.01126, allocations: 59.52 kB / 277.9 MB, free: 0.8242 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006217/0.01188, allocations: 330 kB / 278.2 MB, free: 480 kB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.385e-05/0.01193, allocations: 79.81 kB / 278.3 MB, free: 380 kB / 250.7 MB Notification: Performance of simCode: alias equations: time 4.983e-05/0.01197, allocations: 25.88 kB / 278.3 MB, free: 352 kB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.917e-05/0.01206, allocations: 106.2 kB / 278.4 MB, free: 244 kB / 250.7 MB Notification: Performance of SimCode: time 9.92e-07/0.01207, allocations: 0 / 278.4 MB, free: 244 kB / 250.7 MB Notification: Performance of Templates: time 0.004933/0.017, allocations: 3.175 MB / 281.6 MB, free: 13.12 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.880060817115009]