Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001162/0.001162, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.468/1.468, allocations: 226.7 MB / 245.5 MB, free: 6.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001294/0.001294, allocations: 109.7 kB / 296.7 MB, free: 6.453 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001155/0.001156, allocations: 51.92 kB / 356.6 MB, free: 10.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2788/0.28, allocations: 50.46 MB / 407.1 MB, free: 27.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.004248/0.2844, allocations: 1.954 MB / 409 MB, free: 25.83 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002016/0.2864, allocations: 1.271 MB / 410.3 MB, free: 24.56 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001288/0.2866, allocations: 4 kB / 410.3 MB, free: 24.55 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003736/0.287, allocations: 63.73 kB / 410.3 MB, free: 24.49 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000283/0.2873, allocations: 111.6 kB / 410.5 MB, free: 24.38 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006758/0.2879, allocations: 231.7 kB / 410.7 MB, free: 24.16 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002046/0.2882, allocations: 171.5 kB / 410.8 MB, free: 24 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001612/0.2883, allocations: 32.03 kB / 410.9 MB, free: 23.97 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001004/0.2884, allocations: 71.64 kB / 410.9 MB, free: 23.9 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001128/0.2886, allocations: 75.67 kB / 411 MB, free: 23.82 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.522e-05/0.2886, allocations: 8 kB / 411 MB, free: 23.82 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001412/0.2887, allocations: 59.91 kB / 411.1 MB, free: 23.76 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.659e-05/0.2888, allocations: 51.77 kB / 411.1 MB, free: 23.71 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.316e-05/0.2889, allocations: 71.48 kB / 411.2 MB, free: 23.64 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002655/0.2892, allocations: 236.8 kB / 411.4 MB, free: 23.41 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.2892, allocations: 0 / 411.4 MB, free: 23.41 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.243e-06/0.2892, allocations: 0 / 411.4 MB, free: 23.41 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.188e-06/0.2892, allocations: 0 / 411.4 MB, free: 23.41 MB / 298.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.0006829/0.2899, allocations: 0.5428 MB / 412 MB, free: 22.81 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.2899, allocations: 16.81 kB / 412 MB, free: 22.79 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.033e-05/0.29, allocations: 24.66 kB / 412 MB, free: 22.77 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002738/0.2903, allocations: 279.6 kB / 412.3 MB, free: 22.46 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.605e-05/0.2903, allocations: 4.375 kB / 412.3 MB, free: 22.45 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.688e-05/0.2903, allocations: 12.12 kB / 412.3 MB, free: 22.44 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002864/0.2906, allocations: 155.5 kB / 412.5 MB, free: 22.26 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.879e-06/0.2907, allocations: 4 kB / 412.5 MB, free: 22.26 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.413e-05/0.2907, allocations: 4 kB / 412.5 MB, free: 22.25 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.2907, allocations: 0 / 412.5 MB, free: 22.25 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000106/0.2908, allocations: 35.97 kB / 412.5 MB, free: 22.22 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004081/0.2912, allocations: 394.4 kB / 412.9 MB, free: 21.78 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002033/0.2914, allocations: 111.9 kB / 413 MB, free: 21.64 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.284e-05/0.2915, allocations: 54.55 kB / 413.1 MB, free: 21.58 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.979e-05/0.2916, allocations: 0 / 413.1 MB, free: 21.58 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002216/0.2918, allocations: 79.23 kB / 413.1 MB, free: 21.49 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.693e-06/0.2918, allocations: 0 / 413.1 MB, free: 21.49 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003491/0.2922, allocations: 149.6 kB / 413.3 MB, free: 21.34 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.622e-05/0.2922, allocations: 162.2 kB / 413.4 MB, free: 21.14 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002536/0.2925, allocations: 346.5 kB / 413.8 MB, free: 20.79 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.346e-05/0.2925, allocations: 25.7 kB / 413.8 MB, free: 20.76 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.273e-05/0.2926, allocations: 132.1 kB / 413.9 MB, free: 20.62 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.371e-05/0.2926, allocations: 23.73 kB / 414 MB, free: 20.6 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.331e-05/0.2926, allocations: 25.72 kB / 414 MB, free: 20.57 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.818e-05/0.2927, allocations: 346.7 kB / 414.3 MB, free: 20.22 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.244e-05/0.2928, allocations: 23.98 kB / 414.3 MB, free: 20.2 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.932e-05/0.2929, allocations: 82.84 kB / 414.4 MB, free: 20.09 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001213/0.293, allocations: 88.47 kB / 414.5 MB, free: 19.99 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.293, allocations: 4 kB / 414.5 MB, free: 19.99 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001855/0.2932, allocations: 121.3 kB / 414.6 MB, free: 19.86 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.2932, allocations: 8 kB / 414.6 MB, free: 19.86 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.778e-06/0.2932, allocations: 0 / 414.6 MB, free: 19.86 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.387e-05/0.2933, allocations: 0 / 414.6 MB, free: 19.86 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001074/0.2934, allocations: 24.11 kB / 414.7 MB, free: 19.83 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.233e-06/0.2934, allocations: 4 kB / 414.7 MB, free: 19.83 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.786e-05/0.2935, allocations: 11.94 kB / 414.7 MB, free: 19.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.989e-06/0.2935, allocations: 4 kB / 414.7 MB, free: 19.81 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,subSample1.y,subSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 0.0001029/0.2936, allocations: 159.2 kB / 414.8 MB, free: 19.65 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.565e-05/0.2937, allocations: 73.34 kB / 414.9 MB, free: 19.57 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.705e-05/0.2937, allocations: 21.72 kB / 414.9 MB, free: 19.55 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.2937, allocations: 12.05 kB / 414.9 MB, free: 19.54 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.2937, allocations: 0 / 414.9 MB, free: 19.54 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.2937, allocations: 3.938 kB / 414.9 MB, free: 19.54 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001424/0.2939, allocations: 241.5 kB / 415.2 MB, free: 19.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.2939, allocations: 0 / 415.2 MB, free: 19.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.512e-05/0.294, allocations: 15.98 kB / 415.2 MB, free: 19.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.294, allocations: 0 / 415.2 MB, free: 19.23 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.052e-05/0.294, allocations: 4 kB / 415.2 MB, free: 19.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.294, allocations: 0 / 415.2 MB, free: 19.23 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.294, allocations: 0 / 415.2 MB, free: 19.23 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004509/0.2944, allocations: 0.7812 MB / 416 MB, free: 18.38 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.604e-05/0.2945, allocations: 116.8 kB / 416.1 MB, free: 18.25 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.947e-05/0.2946, allocations: 7.938 kB / 416.1 MB, free: 18.24 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.917e-05/0.2946, allocations: 4.062 kB / 416.1 MB, free: 18.24 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.451e-05/0.2947, allocations: 19.92 kB / 416.1 MB, free: 18.22 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.602e-05/0.2947, allocations: 4.094 kB / 416.1 MB, free: 18.21 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001724/0.2949, allocations: 253.9 kB / 416.4 MB, free: 17.97 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2949, allocations: 0 / 416.4 MB, free: 17.97 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003387/0.2952, allocations: 32 kB / 416.4 MB, free: 17.94 MB / 298.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.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * 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.0009208/0.2962, allocations: 416.3 kB / 416.8 MB, free: 17.66 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000204/0.2964, allocations: 75.91 kB / 416.9 MB, free: 17.59 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.2964, allocations: 4 kB / 416.9 MB, free: 17.59 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.076e-05/0.2965, allocations: 23.98 kB / 416.9 MB, free: 17.56 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003821/0.2969, allocations: 69.67 kB / 417 MB, free: 17.49 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005688/0.2974, allocations: 0.541 MB / 417.5 MB, free: 16.9 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001676/0.2976, allocations: 0.7439 MB / 418.3 MB, free: 16.13 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.451e-05/0.2977, allocations: 25.53 kB / 418.3 MB, free: 16.11 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.481e-05/0.2978, allocations: 27.42 kB / 418.3 MB, free: 16.08 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.2978, allocations: 0 / 418.3 MB, free: 16.08 MB / 298.7 MB Notification: Performance of Templates: time 0.005247/0.303, allocations: 2.785 MB / 421.1 MB, free: 13.32 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches