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.0008567/0.0008567, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.0008576/0.0008576, allocations: 142.1 kB / 24.89 MB, free: 8.777 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.9618/0.9618, allocations: 173.4 MB / 201.5 MB, free: 8.762 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.503e-06/1.503e-06, allocations: 0 / 268.5 MB, free: 6.047 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.183e-05/1.334e-05, allocations: 5.969 kB / 268.5 MB, free: 6.043 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.002784/0.002797, allocations: 1.909 MB / 270.4 MB, free: 4.117 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001273/0.00407, allocations: 1.106 MB / 271.5 MB, free: 3.004 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001054/0.004175, allocations: 7.938 kB / 271.5 MB, free: 2.996 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000254/0.004429, allocations: 71.59 kB / 271.6 MB, free: 2.926 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002073/0.004637, allocations: 95.52 kB / 271.6 MB, free: 2.832 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004718/0.005108, allocations: 255.1 kB / 271.9 MB, free: 2.582 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001829/0.005291, allocations: 175.5 kB / 272.1 MB, free: 2.41 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.584e-05/0.005367, allocations: 22.45 kB / 272.1 MB, free: 2.387 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001065/0.005474, allocations: 99.72 kB / 272.2 MB, free: 2.289 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.147e-05/0.005555, allocations: 59.86 kB / 272.2 MB, free: 2.23 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.743e-05/0.005573, allocations: 8 kB / 272.3 MB, free: 2.223 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000115/0.005688, allocations: 75.81 kB / 272.3 MB, free: 2.148 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.835e-05/0.005746, allocations: 55.78 kB / 272.4 MB, free: 2.094 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.065e-05/0.005787, allocations: 39.84 kB / 272.4 MB, free: 2.055 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002039/0.00599, allocations: 187.2 kB / 272.6 MB, free: 1.871 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.005994, allocations: 4 kB / 272.6 MB, free: 1.867 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.005995, allocations: 0 / 272.6 MB, free: 1.867 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.216e-06/0.005999, allocations: 0 / 272.6 MB, free: 1.867 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.0004019/0.0064, allocations: 433.2 kB / 273 MB, free: 1.414 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.62e-05/0.006427, allocations: 8.031 kB / 273 MB, free: 1.406 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.428e-05/0.006461, allocations: 16.92 kB / 273.1 MB, free: 1.391 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001903/0.006651, allocations: 212.7 kB / 273.3 MB, free: 1.156 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.371e-05/0.006665, allocations: 4.375 kB / 273.3 MB, free: 1.152 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.251e-05/0.006678, allocations: 8.375 kB / 273.3 MB, free: 1.145 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001862/0.006864, allocations: 145.6 kB / 273.4 MB, free: 0.9805 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.054e-06/0.006871, allocations: 3.938 kB / 273.4 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.632e-06/0.006877, allocations: 0 / 273.4 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.006882, allocations: 4 kB / 273.4 MB, free: 0.9727 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.443e-05/0.006917, allocations: 22.73 kB / 273.4 MB, free: 0.9492 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002311/0.007148, allocations: 207.7 kB / 273.6 MB, free: 0.7227 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001063/0.007254, allocations: 133.3 kB / 273.8 MB, free: 0.5625 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.629e-05/0.00728, allocations: 30.56 kB / 273.8 MB, free: 0.5234 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.557e-05/0.007296, allocations: 11.88 kB / 273.8 MB, free: 0.5117 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.959e-05/0.007375, allocations: 70.2 kB / 273.9 MB, free: 440 kB / 250.7 MB Notification: Performance of pre-optimization done (n=9): time 1.162e-06/0.007377, allocations: 7.938 kB / 273.9 MB, free: 432 kB / 250.7 MB Notification: Performance of matching and sorting (n=9): time 0.0001276/0.007504, allocations: 85.58 kB / 274 MB, free: 340 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.36e-05/0.007548, allocations: 114.7 kB / 274.1 MB, free: 200 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001546/0.007702, allocations: 254.9 kB / 274.3 MB, free: 15.93 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.504e-05/0.007717, allocations: 29.7 kB / 274.4 MB, free: 15.89 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.628e-05/0.007754, allocations: 104.6 kB / 274.5 MB, free: 15.79 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.046e-05/0.007774, allocations: 23.81 kB / 274.5 MB, free: 15.77 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.216e-05/0.007806, allocations: 29.66 kB / 274.5 MB, free: 15.73 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.246e-05/0.007879, allocations: 334.8 kB / 274.9 MB, free: 15.39 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.719e-05/0.007896, allocations: 6.828 kB / 274.9 MB, free: 15.39 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.291e-05/0.007929, allocations: 52.27 kB / 274.9 MB, free: 15.32 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.152e-05/0.00797, allocations: 39.3 kB / 274.9 MB, free: 15.27 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.007972, allocations: 0 / 274.9 MB, free: 15.27 MB / 266.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 7.388e-05/0.008046, allocations: 72.47 kB / 275 MB, free: 15.2 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.919e-06/0.008056, allocations: 8 kB / 275 MB, free: 15.19 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.406e-06/0.008059, allocations: 0 / 275 MB, free: 15.19 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.817e-06/0.008068, allocations: 0 / 275 MB, free: 15.19 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.948e-05/0.008128, allocations: 19.92 kB / 275 MB, free: 15.17 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.355e-06/0.00813, allocations: 0 / 275 MB, free: 15.17 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.113e-05/0.008161, allocations: 4 kB / 275.1 MB, free: 15.16 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.829e-06/0.008166, allocations: 0 / 275.1 MB, free: 15.16 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.627e-05/0.008232, allocations: 124.6 kB / 275.2 MB, free: 15.03 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.994e-05/0.008272, allocations: 57.59 kB / 275.2 MB, free: 14.97 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.826e-05/0.00836, allocations: 75.75 kB / 275.3 MB, free: 14.89 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.008363, allocations: 4 kB / 275.3 MB, free: 14.88 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.633e-06/0.008365, allocations: 0 / 275.3 MB, free: 14.88 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/0.008369, allocations: 4 kB / 275.3 MB, free: 14.88 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.773e-05/0.008457, allocations: 113.8 kB / 275.4 MB, free: 14.75 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.008459, allocations: 4 kB / 275.4 MB, free: 14.75 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.469e-05/0.008494, allocations: 11.94 kB / 275.4 MB, free: 14.73 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.554e-06/0.008496, allocations: 3.984 kB / 275.4 MB, free: 14.73 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.576e-06/0.008505, allocations: 11.94 kB / 275.5 MB, free: 14.72 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.008506, allocations: 8 kB / 275.5 MB, free: 14.71 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.008507, allocations: 0 / 275.5 MB, free: 14.71 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.512e-05/0.008583, allocations: 108.7 kB / 275.6 MB, free: 14.58 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.973e-05/0.008622, allocations: 27.83 kB / 275.6 MB, free: 14.55 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.848e-05/0.008641, allocations: 11.92 kB / 275.6 MB, free: 14.54 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.969e-05/0.00867, allocations: 8 kB / 275.6 MB, free: 14.53 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.93e-05/0.0087, allocations: 7.922 kB / 275.6 MB, free: 14.52 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.437e-06/0.008709, allocations: 4 kB / 275.6 MB, free: 14.52 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.845e-05/0.008778, allocations: 97.59 kB / 275.7 MB, free: 14.42 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008778, allocations: 0 / 275.7 MB, free: 14.42 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001401/0.008918, allocations: 39.89 kB / 275.8 MB, free: 14.38 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.001018/0.009936, allocations: 0.512 MB / 276.3 MB, free: 14.1 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 8.654e-05/0.01002, allocations: 36.78 kB / 276.3 MB, free: 14.06 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.01003, allocations: 0 / 276.3 MB, free: 14.06 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.277e-05/0.01006, allocations: 28.83 kB / 276.3 MB, free: 14.03 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001775/0.01024, allocations: 65.03 kB / 276.4 MB, free: 13.96 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003332/0.01057, allocations: 323.7 kB / 276.7 MB, free: 13.62 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.333e-05/0.01061, allocations: 83.81 kB / 276.8 MB, free: 13.52 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.615e-05/0.01066, allocations: 25.75 kB / 276.8 MB, free: 13.49 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.092e-05/0.01074, allocations: 83.28 kB / 276.9 MB, free: 13.41 MB / 266.7 MB Notification: Performance of SimCode: time 6.62e-07/0.01074, allocations: 0 / 276.9 MB, free: 13.41 MB / 266.7 MB Notification: Performance of Templates: time 0.004533/0.01527, allocations: 3.107 MB / 280 MB, free: 10.35 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.644653926137835]