Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample") translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001153/0.001153, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001125/0.001126, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.332/1.332, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001159/0.001159, allocations: 59.06 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.102, allocations: 50.53 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample): time 0.003094/0.1051, allocations: 1.552 MB / 360.4 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009548/0.1061, allocations: 0.5337 MB / 361 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.803e-05/0.1062, allocations: 7.938 kB / 361 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.365e-05/0.1063, allocations: 7.875 kB / 361 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000118/0.1064, allocations: 7.922 kB / 361 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002777/0.1067, allocations: 63.81 kB / 361.1 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001026/0.1068, allocations: 43.8 kB / 361.1 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000106/0.1069, allocations: 24.14 kB / 361.1 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001015/0.107, allocations: 23.88 kB / 361.2 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.228e-05/0.1071, allocations: 19.86 kB / 361.2 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.483e-05/0.1071, allocations: 4 kB / 361.2 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.155e-05/0.1072, allocations: 7.984 kB / 361.2 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.185e-05/0.1072, allocations: 15.92 kB / 361.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.536e-05/0.1073, allocations: 35.8 kB / 361.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000128/0.1074, allocations: 59.75 kB / 361.3 MB, free: 10.92 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.1074, allocations: 0 / 361.3 MB, free: 10.92 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1074, allocations: 0 / 361.3 MB, free: 10.92 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.712e-06/0.1074, allocations: 0 / 361.3 MB, free: 10.92 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004947/0.1079, allocations: 383 kB / 361.7 MB, free: 10.5 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.36e-05/0.108, allocations: 8.031 kB / 361.7 MB, free: 10.49 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001556/0.1081, allocations: 20.83 kB / 361.7 MB, free: 10.47 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002587/0.1084, allocations: 200.1 kB / 361.9 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.297e-06/0.1084, allocations: 384 / 361.9 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.279e-05/0.1084, allocations: 4.375 kB / 361.9 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002727/0.1087, allocations: 113.2 kB / 362 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.1087, allocations: 4 kB / 362 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.735e-06/0.1087, allocations: 3.938 kB / 362 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.1087, allocations: 0 / 362 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.333e-05/0.1088, allocations: 19.98 kB / 362 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003083/0.1091, allocations: 265.7 kB / 362.3 MB, free: 9.766 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.093e-05/0.1092, allocations: 45.22 kB / 362.3 MB, free: 9.703 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.901e-05/0.1093, allocations: 25.77 kB / 362.4 MB, free: 9.672 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.954e-05/0.1093, allocations: 0 / 362.4 MB, free: 9.672 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.312e-05/0.1094, allocations: 38.5 kB / 362.4 MB, free: 9.625 MB / 302.1 MB Notification: Performance of pre-optimization done (n=2): time 2.525e-06/0.1094, allocations: 3.984 kB / 362.4 MB, free: 9.621 MB / 302.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002268/0.1096, allocations: 69.61 kB / 362.5 MB, free: 9.547 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.134e-05/0.1097, allocations: 81.11 kB / 362.6 MB, free: 9.449 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001225/0.1098, allocations: 144.2 kB / 362.7 MB, free: 9.301 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.285e-05/0.1098, allocations: 25.7 kB / 362.7 MB, free: 9.27 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.554e-05/0.1099, allocations: 92.08 kB / 362.8 MB, free: 9.176 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.298e-05/0.1099, allocations: 0 / 362.8 MB, free: 9.176 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.738e-05/0.1099, allocations: 21.62 kB / 362.8 MB, free: 9.148 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.1101, allocations: 322.9 kB / 363.1 MB, free: 8.824 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.768e-05/0.1101, allocations: 8 kB / 363.2 MB, free: 8.816 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.705e-05/0.1101, allocations: 21.7 kB / 363.2 MB, free: 8.789 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.561e-05/0.1102, allocations: 37.58 kB / 363.2 MB, free: 8.746 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1102, allocations: 4.062 kB / 363.2 MB, free: 8.742 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000109/0.1103, allocations: 49.69 kB / 363.3 MB, free: 8.688 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.71e-05/0.1104, allocations: 4 kB / 363.3 MB, free: 8.684 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.1104, allocations: 0 / 363.3 MB, free: 8.684 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.1104, allocations: 4 kB / 363.3 MB, free: 8.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.84e-05/0.1105, allocations: 11.92 kB / 363.3 MB, free: 8.668 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.1105, allocations: 0 / 363.3 MB, free: 8.668 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.202e-05/0.1106, allocations: 0 / 363.3 MB, free: 8.668 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.741e-06/0.1106, allocations: 4 kB / 363.3 MB, free: 8.664 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 7.562e-05/0.1107, allocations: 129.8 kB / 363.4 MB, free: 8.527 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.719e-05/0.1107, allocations: 37.61 kB / 363.5 MB, free: 8.484 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.925e-05/0.1108, allocations: 11.83 kB / 363.5 MB, free: 8.469 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.1108, allocations: 4 kB / 363.5 MB, free: 8.465 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.1108, allocations: 0 / 363.5 MB, free: 8.465 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.107e-06/0.1108, allocations: 3.984 kB / 363.5 MB, free: 8.461 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002442/0.111, allocations: 169.6 kB / 363.6 MB, free: 8.246 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.111, allocations: 7.938 kB / 363.6 MB, free: 8.238 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.273e-05/0.1111, allocations: 4 kB / 363.6 MB, free: 8.234 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.1111, allocations: 4.031 kB / 363.7 MB, free: 8.23 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.317e-06/0.1111, allocations: 0 / 363.7 MB, free: 8.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.1111, allocations: 3.938 kB / 363.7 MB, free: 8.227 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.1111, allocations: 4 kB / 363.7 MB, free: 8.223 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001585/0.1113, allocations: 156.2 kB / 363.8 MB, free: 8.051 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001395/0.1114, allocations: 97.03 kB / 363.9 MB, free: 7.938 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.85e-05/0.1115, allocations: 8 kB / 363.9 MB, free: 7.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.291e-05/0.1115, allocations: 0 / 363.9 MB, free: 7.93 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.48e-05/0.1116, allocations: 0 / 363.9 MB, free: 7.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.386e-06/0.1116, allocations: 4 kB / 363.9 MB, free: 7.926 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.454e-05/0.1117, allocations: 110.3 kB / 364 MB, free: 7.82 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1117, allocations: 0 / 364 MB, free: 7.82 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000218/0.1119, allocations: 8 kB / 364 MB, free: 7.812 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 9.44e-05/0.112, allocations: 99.25 kB / 364.1 MB, free: 7.707 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001285/0.1121, allocations: 31.91 kB / 364.2 MB, free: 7.676 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.1121, allocations: 0 / 364.2 MB, free: 7.676 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.33e-05/0.1122, allocations: 4 kB / 364.2 MB, free: 7.672 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003082/0.1125, allocations: 27.27 kB / 364.2 MB, free: 7.648 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002967/0.1128, allocations: 167.6 kB / 364.4 MB, free: 7.457 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002414/0.113, allocations: 0.6923 MB / 365 MB, free: 6.738 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.635e-05/0.1131, allocations: 0 / 365 MB, free: 6.738 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.432e-05/0.1131, allocations: 11.44 kB / 365.1 MB, free: 6.727 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1131, allocations: 0 / 365.1 MB, free: 6.727 MB / 302.1 MB Notification: Performance of Templates: time 0.002522/0.1156, allocations: 0.5102 MB / 365.6 MB, free: 6.223 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches