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.001309/0.001308, allocations: 196.8 kB / 18.11 MB, free: 3.617 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.795/1.795, allocations: 226.5 MB / 245.4 MB, free: 6.363 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008661/0.0008668, allocations: 97.44 kB / 297.5 MB, free: 6.633 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003522/0.0003526, allocations: 11.98 kB / 358.1 MB, free: 10.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3116/0.312, allocations: 51.29 MB / 409.4 MB, free: 27.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1072/0.4193, allocations: 82.28 MB / 491.6 MB, free: 9.199 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002278/0.4195, allocations: 91.94 kB / 491.7 MB, free: 9.109 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02094/0.4405, allocations: 7.49 MB / 499.2 MB, free: 1.621 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.227e-06/0.4406, allocations: 3.938 kB / 499.2 MB, free: 1.617 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.081e-05/0.4406, allocations: 4 kB / 499.2 MB, free: 1.613 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.001283/0.4419, allocations: 0.5546 MB / 499.8 MB, free: 1 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.719e-05/0.442, allocations: 8.031 kB / 499.8 MB, free: 0.9922 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001415/0.4421, allocations: 24.66 kB / 499.8 MB, free: 0.9688 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006816/0.4428, allocations: 311.5 kB / 0.4884 GB, free: 0.625 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.965e-05/0.4429, allocations: 384 / 0.4884 GB, free: 0.625 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.613e-05/0.4429, allocations: 12.38 kB / 0.4884 GB, free: 0.6133 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004419/0.4434, allocations: 159.9 kB / 0.4886 GB, free: 444 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/0.4434, allocations: 192 / 0.4886 GB, free: 444 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.362e-05/0.4434, allocations: 7.938 kB / 0.4886 GB, free: 436 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.4435, allocations: 0 / 0.4886 GB, free: 436 kB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000147/0.4436, allocations: 43.91 kB / 0.4886 GB, free: 392 kB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00067/0.4443, allocations: 410.4 kB / 0.489 GB, free: 15.92 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002397/0.4445, allocations: 123.9 kB / 0.4891 GB, free: 15.77 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.994e-05/0.4447, allocations: 50.5 kB / 0.4892 GB, free: 15.71 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.377e-05/0.4447, allocations: 4 kB / 0.4892 GB, free: 15.71 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001728/0.4449, allocations: 75.38 kB / 0.4893 GB, free: 15.62 MB / 378.7 MB Notification: Performance of pre-optimization done (n=9): time 1.723e-06/0.4449, allocations: 4 kB / 0.4893 GB, free: 15.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=9): time 0.0004049/0.4453, allocations: 161.2 kB / 0.4894 GB, free: 15.46 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.309e-05/0.4454, allocations: 162.2 kB / 0.4896 GB, free: 15.26 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004745/0.4459, allocations: 334.7 kB / 0.4899 GB, free: 14.92 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.716e-05/0.4459, allocations: 25.7 kB / 0.4899 GB, free: 14.89 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001035/0.446, allocations: 140.3 kB / 0.49 GB, free: 14.75 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.783e-05/0.4461, allocations: 15.81 kB / 0.4901 GB, free: 14.73 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.31e-06/0.4461, allocations: 4 kB / 0.4901 GB, free: 14.73 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001582/0.4463, allocations: 334.8 kB / 0.4904 GB, free: 14.39 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.649e-05/0.4463, allocations: 23.98 kB / 0.4904 GB, free: 14.37 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001311/0.4465, allocations: 94.84 kB / 0.4905 GB, free: 14.25 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001658/0.4467, allocations: 88.16 kB / 0.4906 GB, free: 14.15 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.4467, allocations: 0 / 0.4906 GB, free: 14.15 MB / 378.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002689/0.447, allocations: 125.5 kB / 0.4907 GB, free: 14.02 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.058e-05/0.447, allocations: 8.031 kB / 0.4907 GB, free: 14.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.447, allocations: 4 kB / 0.4907 GB, free: 14.01 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.799e-05/0.447, allocations: 0 / 0.4907 GB, free: 14.01 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001127/0.4471, allocations: 27.86 kB / 0.4907 GB, free: 13.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.014e-06/0.4472, allocations: 0 / 0.4907 GB, free: 13.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.01e-05/0.4472, allocations: 11.84 kB / 0.4907 GB, free: 13.97 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.408e-05/0.4473, allocations: 8 kB / 0.4908 GB, free: 13.96 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.0001626/0.4474, allocations: 153.8 kB / 0.4909 GB, free: 13.8 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.636e-05/0.4475, allocations: 65.45 kB / 0.491 GB, free: 13.73 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002721/0.4478, allocations: 139 kB / 0.4911 GB, free: 13.6 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.06e-06/0.4478, allocations: 4 kB / 0.4911 GB, free: 13.59 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.4478, allocations: 0 / 0.4911 GB, free: 13.59 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.4478, allocations: 320 / 0.4911 GB, free: 13.59 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000224/0.4481, allocations: 253.5 kB / 0.4913 GB, free: 13.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.4481, allocations: 4 kB / 0.4913 GB, free: 13.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.133e-05/0.4482, allocations: 15.98 kB / 0.4914 GB, free: 13.28 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.4482, allocations: 64 / 0.4914 GB, free: 13.28 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.357e-05/0.4482, allocations: 8 kB / 0.4914 GB, free: 13.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.4482, allocations: 0 / 0.4914 GB, free: 13.27 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.4482, allocations: 0 / 0.4914 GB, free: 13.27 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002771/0.4485, allocations: 174.4 kB / 0.4915 GB, free: 13.07 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001175/0.4486, allocations: 120.8 kB / 0.4916 GB, free: 12.94 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.571e-05/0.4487, allocations: 15.98 kB / 0.4917 GB, free: 12.92 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.392e-05/0.4487, allocations: 4 kB / 0.4917 GB, free: 12.92 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.263e-05/0.4488, allocations: 11.98 kB / 0.4917 GB, free: 12.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.083e-05/0.4488, allocations: 4 kB / 0.4917 GB, free: 12.9 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002635/0.4491, allocations: 245.9 kB / 0.4919 GB, free: 12.66 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4491, allocations: 3.938 kB / 0.4919 GB, free: 12.66 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003062/0.4494, allocations: 43.94 kB / 0.492 GB, free: 12.61 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.001009/0.4504, allocations: 441.4 kB / 0.4924 GB, free: 12.32 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002793/0.4507, allocations: 91.88 kB / 0.4925 GB, free: 12.23 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.4507, allocations: 3.938 kB / 0.4925 GB, free: 12.22 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.009e-05/0.4508, allocations: 35.92 kB / 0.4925 GB, free: 12.19 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004092/0.4512, allocations: 67.09 kB / 0.4926 GB, free: 12.12 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006695/0.4519, allocations: 416.7 kB / 0.493 GB, free: 11.68 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003084/0.4522, allocations: 0.74 MB / 0.4937 GB, free: 10.92 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001085/0.4524, allocations: 33.67 kB / 0.4937 GB, free: 10.89 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.521e-05/0.4524, allocations: 23.42 kB / 0.4937 GB, free: 10.86 MB / 378.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4524, allocations: 0 / 0.4937 GB, free: 10.86 MB / 378.7 MB Notification: Performance of Templates: time 0.007221/0.4597, allocations: 2.798 MB / 0.4965 GB, free: 8.086 MB / 378.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/jenkins1/ws/OpenModelicaLibraryTestingWork/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