Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001994/0.001994, allocations: 196.6 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.477/1.477, allocations: 226.6 MB / 244.7 MB, free: 6.473 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000829/0.000829, allocations: 102.7 kB / 296.8 MB, free: 6.703 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002683/0.0002685, allocations: 4 kB / 356.8 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2761/0.2764, allocations: 51.3 MB / 408 MB, free: 27.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.002006/0.2785, allocations: 1.567 MB / 409.6 MB, free: 26.14 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001418/0.2799, allocations: 1.181 MB / 410.8 MB, free: 24.96 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001107/0.28, allocations: 4 kB / 410.8 MB, free: 24.95 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002799/0.2803, allocations: 55.8 kB / 410.9 MB, free: 24.9 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002496/0.2806, allocations: 108.5 kB / 411 MB, free: 24.79 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005663/0.2812, allocations: 219.8 kB / 411.2 MB, free: 24.59 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001845/0.2814, allocations: 158.8 kB / 411.3 MB, free: 24.43 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000109/0.2815, allocations: 33.55 kB / 411.4 MB, free: 24.4 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.586e-05/0.2816, allocations: 67.62 kB / 411.4 MB, free: 24.34 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001149/0.2817, allocations: 71.62 kB / 411.5 MB, free: 24.27 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.041e-05/0.2817, allocations: 0 / 411.5 MB, free: 24.27 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001067/0.2818, allocations: 45.14 kB / 411.5 MB, free: 24.22 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.003e-05/0.2819, allocations: 47.81 kB / 411.6 MB, free: 24.18 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.752e-05/0.282, allocations: 89.25 kB / 411.7 MB, free: 24.08 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001706/0.2821, allocations: 184.5 kB / 411.9 MB, free: 23.9 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.2822, allocations: 2.469 kB / 411.9 MB, free: 23.9 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.335e-06/0.2822, allocations: 4 kB / 411.9 MB, free: 23.9 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.476e-06/0.2822, allocations: 0 / 411.9 MB, free: 23.9 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.0005437/0.2827, allocations: 0.5001 MB / 412.4 MB, free: 23.34 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.2828, allocations: 10.66 kB / 412.4 MB, free: 23.34 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.257e-05/0.2828, allocations: 24.66 kB / 412.4 MB, free: 23.31 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002608/0.2831, allocations: 287.6 kB / 412.7 MB, free: 22.99 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.92e-05/0.2831, allocations: 4.375 kB / 412.7 MB, free: 22.99 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.954e-05/0.2831, allocations: 12.12 kB / 412.7 MB, free: 22.98 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002925/0.2834, allocations: 150.2 kB / 412.8 MB, free: 22.8 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.2835, allocations: 0 / 412.8 MB, free: 22.8 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.403e-05/0.2835, allocations: 8 kB / 412.8 MB, free: 22.8 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.2835, allocations: 0 / 412.8 MB, free: 22.8 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001033/0.2836, allocations: 39.92 kB / 412.9 MB, free: 22.76 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004165/0.284, allocations: 378.3 kB / 413.3 MB, free: 22.33 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002013/0.2842, allocations: 123.9 kB / 413.4 MB, free: 22.18 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.366e-05/0.2843, allocations: 42.56 kB / 413.4 MB, free: 22.13 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.279e-05/0.2844, allocations: 7.938 kB / 413.4 MB, free: 22.12 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002027/0.2846, allocations: 79.38 kB / 413.5 MB, free: 22.04 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.734e-06/0.2846, allocations: 0 / 413.5 MB, free: 22.04 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003854/0.285, allocations: 149.3 kB / 413.7 MB, free: 21.88 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.464e-05/0.2851, allocations: 166.1 kB / 413.8 MB, free: 21.68 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002893/0.2854, allocations: 334.9 kB / 414.1 MB, free: 21.35 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.391e-05/0.2854, allocations: 29.7 kB / 414.2 MB, free: 21.31 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.66e-05/0.2855, allocations: 136 kB / 414.3 MB, free: 21.18 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.139e-05/0.2855, allocations: 11.84 kB / 414.3 MB, free: 21.16 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.46e-06/0.2855, allocations: 4 kB / 414.3 MB, free: 21.16 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.698e-05/0.2856, allocations: 338.8 kB / 414.6 MB, free: 20.82 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.917e-05/0.2856, allocations: 19.98 kB / 414.7 MB, free: 20.8 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.538e-05/0.2858, allocations: 82.86 kB / 414.7 MB, free: 20.7 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001231/0.2859, allocations: 84.2 kB / 414.8 MB, free: 20.6 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/0.2859, allocations: 8 kB / 414.8 MB, free: 20.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001987/0.2861, allocations: 129.5 kB / 415 MB, free: 20.46 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.848e-05/0.2861, allocations: 7.938 kB / 415 MB, free: 20.45 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.2862, allocations: 4 kB / 415 MB, free: 20.45 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.705e-05/0.2862, allocations: 0 / 415 MB, free: 20.45 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001058/0.2863, allocations: 23.92 kB / 415 MB, free: 20.42 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.2863, allocations: 0 / 415 MB, free: 20.42 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.269e-05/0.2864, allocations: 7.938 kB / 415 MB, free: 20.41 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.067e-05/0.2864, allocations: 12.12 kB / 415 MB, free: 20.4 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 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001127/0.2865, allocations: 149.8 kB / 415.2 MB, free: 20.25 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.242e-05/0.2866, allocations: 69.39 kB / 415.2 MB, free: 20.17 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.089e-05/0.2867, allocations: 29.7 kB / 415.3 MB, free: 20.14 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.2867, allocations: 0 / 415.3 MB, free: 20.14 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.2867, allocations: 4 kB / 415.3 MB, free: 20.14 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.2867, allocations: 7.922 kB / 415.3 MB, free: 20.13 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001506/0.2868, allocations: 245.5 kB / 415.5 MB, free: 19.84 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.2868, allocations: 4.062 kB / 415.5 MB, free: 19.84 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.873e-05/0.2869, allocations: 19.98 kB / 415.5 MB, free: 19.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.2869, allocations: 0 / 415.5 MB, free: 19.82 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.111e-05/0.2869, allocations: 3.938 kB / 415.5 MB, free: 19.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.2869, allocations: 4 kB / 415.5 MB, free: 19.81 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.287, allocations: 0 / 415.5 MB, free: 19.81 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002187/0.2872, allocations: 170.4 kB / 415.7 MB, free: 19.62 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.834e-05/0.2873, allocations: 112.9 kB / 415.8 MB, free: 19.49 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.955e-05/0.2873, allocations: 3.938 kB / 415.8 MB, free: 19.49 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.281e-05/0.2874, allocations: 8 kB / 415.8 MB, free: 19.48 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.65e-05/0.2874, allocations: 7.984 kB / 415.8 MB, free: 19.47 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.608e-05/0.2874, allocations: 7.938 kB / 415.8 MB, free: 19.46 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001809/0.2876, allocations: 249.9 kB / 416.1 MB, free: 19.22 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2876, allocations: 0 / 416.1 MB, free: 19.22 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002459/0.2879, allocations: 43.89 kB / 416.1 MB, free: 19.18 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000865/0.2888, allocations: 422.6 kB / 416.5 MB, free: 18.91 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002061/0.289, allocations: 75.89 kB / 416.6 MB, free: 18.83 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.289, allocations: 0 / 416.6 MB, free: 18.83 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.093e-05/0.2891, allocations: 31.92 kB / 416.7 MB, free: 18.8 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004005/0.2895, allocations: 58.22 kB / 416.7 MB, free: 18.74 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005452/0.29, allocations: 442.2 kB / 417.1 MB, free: 18.27 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001633/0.2902, allocations: 0.74 MB / 417.9 MB, free: 17.5 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.802e-05/0.2903, allocations: 31.42 kB / 417.9 MB, free: 17.47 MB / 298.7 MB Notification: Performance of SimCode: time 2.9e-07/0.2903, allocations: 0 / 417.9 MB, free: 17.47 MB / 298.7 MB Notification: Performance of Templates: time 0.004059/0.2943, allocations: 2.903 MB / 420.8 MB, free: 14.58 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches