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.0009542/0.0009542, allocations: 198.8 kB / 18.07 MB, free: 3.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.441/1.441, allocations: 226.5 MB / 245.4 MB, free: 8.223 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008334/0.0008334, allocations: 100.8 kB / 297.4 MB, free: 6.918 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002503/0.0002504, allocations: 4 kB / 357.4 MB, free: 10.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1936/0.1939, allocations: 51.29 MB / 408.7 MB, free: 27.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.093/0.2869, allocations: 82.28 MB / 490.9 MB, free: 9.363 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002366/0.2872, allocations: 83.95 kB / 491 MB, free: 9.281 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02022/0.3075, allocations: 7.489 MB / 498.5 MB, free: 1.793 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3075, allocations: 0 / 498.5 MB, free: 1.793 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.074e-05/0.3075, allocations: 4 kB / 498.5 MB, free: 1.789 MB / 362.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.0007808/0.3083, allocations: 0.5507 MB / 499.1 MB, free: 1.18 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.3084, allocations: 16.02 kB / 499.1 MB, free: 1.164 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.138e-05/0.3085, allocations: 20.66 kB / 499.1 MB, free: 1.145 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004296/0.3089, allocations: 307.5 kB / 499.4 MB, free: 0.8047 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.067e-05/0.3089, allocations: 12.36 kB / 499.4 MB, free: 0.793 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.046e-05/0.3089, allocations: 8.375 kB / 499.4 MB, free: 0.7852 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003224/0.3093, allocations: 160.1 kB / 499.6 MB, free: 0.6016 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.846e-06/0.3093, allocations: 192 / 499.6 MB, free: 0.6016 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.582e-05/0.3093, allocations: 3.938 kB / 499.6 MB, free: 0.5977 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.3093, allocations: 4 kB / 499.6 MB, free: 0.5938 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001128/0.3094, allocations: 39.92 kB / 499.6 MB, free: 0.5547 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005205/0.31, allocations: 414.2 kB / 0.4883 GB, free: 96 kB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000258/0.3102, allocations: 119.9 kB / 0.4884 GB, free: 15.95 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.03e-05/0.3103, allocations: 46.55 kB / 0.4885 GB, free: 15.89 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.157e-05/0.3104, allocations: 7.938 kB / 0.4885 GB, free: 15.89 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001572/0.3105, allocations: 79.38 kB / 0.4886 GB, free: 15.8 MB / 378.7 MB Notification: Performance of pre-optimization done (n=9): time 1.493e-06/0.3106, allocations: 0 / 0.4886 GB, free: 15.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003808/0.3109, allocations: 157.3 kB / 0.4887 GB, free: 15.64 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.089e-05/0.311, allocations: 162.2 kB / 0.4889 GB, free: 15.44 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003502/0.3114, allocations: 338.9 kB / 0.4892 GB, free: 15.1 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.16e-05/0.3114, allocations: 29.7 kB / 0.4892 GB, free: 15.06 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.846e-05/0.3115, allocations: 132 kB / 0.4893 GB, free: 14.93 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.519e-05/0.3115, allocations: 19.8 kB / 0.4894 GB, free: 14.91 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.165e-06/0.3116, allocations: 4 kB / 0.4894 GB, free: 14.91 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.3117, allocations: 330.8 kB / 0.4897 GB, free: 14.57 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.994e-05/0.3118, allocations: 23.98 kB / 0.4897 GB, free: 14.55 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001195/0.3119, allocations: 98.83 kB / 0.4898 GB, free: 14.43 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001549/0.3121, allocations: 80.22 kB / 0.4899 GB, free: 14.34 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.3121, allocations: 0 / 0.4899 GB, free: 14.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002781/0.3124, allocations: 129.4 kB / 0.49 GB, free: 14.2 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.341e-05/0.3124, allocations: 4 kB / 0.49 GB, free: 14.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.611e-05/0.3124, allocations: 7.984 kB / 0.49 GB, free: 14.19 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.174e-05/0.3124, allocations: 3.938 kB / 0.49 GB, free: 14.19 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001067/0.3125, allocations: 19.94 kB / 0.49 GB, free: 14.17 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.222e-06/0.3125, allocations: 0 / 0.49 GB, free: 14.17 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.167e-05/0.3126, allocations: 23.83 kB / 0.49 GB, free: 14.14 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.105e-05/0.3127, allocations: 4.109 kB / 0.4901 GB, free: 14.14 MB / 378.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,sample1.u,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.0001294/0.3128, allocations: 162 kB / 0.4902 GB, free: 13.97 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.99e-05/0.3129, allocations: 69.44 kB / 0.4903 GB, free: 13.9 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002716/0.3132, allocations: 131.3 kB / 0.4904 GB, free: 13.77 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.3132, allocations: 0 / 0.4904 GB, free: 13.77 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.3132, allocations: 0 / 0.4904 GB, free: 13.77 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.3132, allocations: 4 kB / 0.4904 GB, free: 13.76 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002217/0.3134, allocations: 253.5 kB / 0.4906 GB, free: 13.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.3134, allocations: 0 / 0.4906 GB, free: 13.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.519e-05/0.3135, allocations: 15.94 kB / 0.4907 GB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.215e-06/0.3135, allocations: 0 / 0.4907 GB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.587e-05/0.3135, allocations: 11.98 kB / 0.4907 GB, free: 13.44 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.3135, allocations: 0 / 0.4907 GB, free: 13.44 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.3136, allocations: 4 kB / 0.4907 GB, free: 13.43 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002748/0.3138, allocations: 170.4 kB / 0.4908 GB, free: 13.24 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001138/0.314, allocations: 124.8 kB / 0.491 GB, free: 13.1 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.156e-05/0.314, allocations: 4 kB / 0.491 GB, free: 13.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.813e-05/0.3141, allocations: 8 kB / 0.491 GB, free: 13.09 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.771e-05/0.3141, allocations: 7.984 kB / 0.491 GB, free: 13.08 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.326e-05/0.3141, allocations: 7.984 kB / 0.491 GB, free: 13.07 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002436/0.3144, allocations: 249.9 kB / 0.4912 GB, free: 12.83 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3144, allocations: 0 / 0.4912 GB, free: 12.83 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002972/0.3147, allocations: 51.94 kB / 0.4913 GB, free: 12.78 MB / 378.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,sample1.u,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 (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.0009173/0.3156, allocations: 440.2 kB / 0.4917 GB, free: 12.48 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002557/0.3159, allocations: 91.81 kB / 0.4918 GB, free: 12.39 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.3159, allocations: 0 / 0.4918 GB, free: 12.39 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.448e-05/0.316, allocations: 35.92 kB / 0.4918 GB, free: 12.36 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004352/0.3164, allocations: 72.95 kB / 0.4919 GB, free: 12.29 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006555/0.3171, allocations: 450 kB / 0.4923 GB, free: 11.81 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003164/0.3174, allocations: 0.74 MB / 0.493 GB, free: 11.05 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.714e-05/0.3175, allocations: 23.42 kB / 0.4931 GB, free: 11.02 MB / 378.7 MB Notification: Performance of SimCode: time 2.51e-07/0.3175, allocations: 0 / 0.4931 GB, free: 11.02 MB / 378.7 MB Notification: Performance of Templates: time 0.004798/0.3223, allocations: 2.983 MB / 0.496 GB, free: 8.055 MB / 378.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/jenkins1/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