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/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.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/ModelicaServices trunk/package.mo): time 0.001453/0.001454, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001517/0.001517, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.563/1.563, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001202/0.001202, allocations: 56.38 kB / 306.9 MB, free: 0.6523 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09595/0.09717, allocations: 50.54 MB / 357.5 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.004054/0.1013, allocations: 1.885 MB / 359.4 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002501/0.1038, allocations: 1.274 MB / 360.6 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001945/0.1041, allocations: 7.938 kB / 360.6 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003551/0.1044, allocations: 63.67 kB / 360.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004232/0.1049, allocations: 135.4 kB / 360.8 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006988/0.1056, allocations: 218.8 kB / 361 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002709/0.1059, allocations: 183.5 kB / 361.2 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001316/0.106, allocations: 37.52 kB / 361.3 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001096/0.1061, allocations: 63.72 kB / 361.3 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001428/0.1063, allocations: 83.61 kB / 361.4 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.055e-05/0.1063, allocations: 8 kB / 361.4 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001659/0.1065, allocations: 67.95 kB / 361.5 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001032/0.1066, allocations: 51.78 kB / 361.5 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000131/0.1067, allocations: 83.41 kB / 361.6 MB, free: 9.949 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000387/0.1071, allocations: 235.5 kB / 361.8 MB, free: 9.719 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.1071, allocations: 0 / 361.8 MB, free: 9.719 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.1071, allocations: 0 / 361.8 MB, free: 9.719 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.05e-05/0.1072, allocations: 0 / 361.8 MB, free: 9.719 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0008122/0.108, allocations: 0.5428 MB / 362.4 MB, free: 9.121 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/0.108, allocations: 11.97 kB / 362.4 MB, free: 9.109 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.5e-05/0.1081, allocations: 28.66 kB / 362.4 MB, free: 9.082 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003833/0.1085, allocations: 283.6 kB / 362.7 MB, free: 8.766 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.681e-05/0.1085, allocations: 4.375 kB / 362.7 MB, free: 8.762 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.2e-05/0.1086, allocations: 12.12 kB / 362.7 MB, free: 8.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003827/0.1089, allocations: 163.6 kB / 362.9 MB, free: 8.562 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.109, allocations: 0 / 362.9 MB, free: 8.562 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.941e-05/0.109, allocations: 4 kB / 362.9 MB, free: 8.559 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.723e-06/0.109, allocations: 0 / 362.9 MB, free: 8.559 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001228/0.1091, allocations: 35.92 kB / 362.9 MB, free: 8.523 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005867/0.1097, allocations: 386.3 kB / 363.3 MB, free: 8.09 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002605/0.11, allocations: 115.9 kB / 363.4 MB, free: 7.949 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001106/0.1101, allocations: 54.5 kB / 363.5 MB, free: 7.887 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.447e-05/0.1102, allocations: 4 kB / 363.5 MB, free: 7.883 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000306/0.1105, allocations: 75.38 kB / 363.5 MB, free: 7.797 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.522e-06/0.1105, allocations: 0 / 363.5 MB, free: 7.797 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.000483/0.111, allocations: 157.2 kB / 363.7 MB, free: 7.637 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001509/0.1111, allocations: 162.5 kB / 363.8 MB, free: 7.441 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004598/0.1116, allocations: 338.6 kB / 364.2 MB, free: 7.098 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.044e-05/0.1117, allocations: 29.7 kB / 364.2 MB, free: 7.062 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001232/0.1118, allocations: 128.1 kB / 364.3 MB, free: 6.934 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.013e-05/0.1118, allocations: 11.81 kB / 364.3 MB, free: 6.922 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.517e-05/0.1119, allocations: 33.7 kB / 364.4 MB, free: 6.883 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001705/0.1121, allocations: 342.7 kB / 364.7 MB, free: 6.539 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.593e-05/0.1122, allocations: 27.98 kB / 364.7 MB, free: 6.512 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001207/0.1123, allocations: 82.92 kB / 364.8 MB, free: 6.406 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000178/0.1125, allocations: 88.16 kB / 364.9 MB, free: 6.305 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.135e-06/0.1125, allocations: 0 / 364.9 MB, free: 6.305 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002868/0.1128, allocations: 125.3 kB / 365 MB, free: 6.176 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.186e-05/0.1128, allocations: 4 kB / 365 MB, free: 6.172 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.305e-05/0.1128, allocations: 4 kB / 365 MB, free: 6.168 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.705e-05/0.1129, allocations: 320 / 365 MB, free: 6.168 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001271/0.113, allocations: 28.05 kB / 365.1 MB, free: 6.141 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.286e-06/0.113, allocations: 0 / 365.1 MB, free: 6.141 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.076e-05/0.1131, allocations: 15.94 kB / 365.1 MB, free: 6.125 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.116e-05/0.1131, allocations: 4 kB / 365.1 MB, free: 6.121 MB / 302.1 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.0001739/0.1133, allocations: 159.3 kB / 365.2 MB, free: 5.957 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.938e-05/0.1134, allocations: 69.34 kB / 365.3 MB, free: 5.883 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.085e-05/0.1135, allocations: 25.7 kB / 365.3 MB, free: 5.859 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.467e-06/0.1135, allocations: 0 / 365.3 MB, free: 5.859 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.606e-06/0.1135, allocations: 8.062 kB / 365.3 MB, free: 5.852 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.553e-06/0.1135, allocations: 7.875 kB / 365.3 MB, free: 5.844 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002719/0.1138, allocations: 245.5 kB / 365.6 MB, free: 5.555 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.1138, allocations: 0 / 365.6 MB, free: 5.555 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.063e-05/0.1139, allocations: 12 kB / 365.6 MB, free: 5.543 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.716e-06/0.1139, allocations: 0 / 365.6 MB, free: 5.543 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.509e-05/0.1139, allocations: 3.984 kB / 365.6 MB, free: 5.539 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.837e-06/0.1139, allocations: 7.938 kB / 365.6 MB, free: 5.531 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.114, allocations: 0 / 365.6 MB, free: 5.531 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003146/0.1143, allocations: 170.4 kB / 365.8 MB, free: 5.34 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001092/0.1144, allocations: 108.9 kB / 365.9 MB, free: 5.215 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.366e-05/0.1144, allocations: 0 / 365.9 MB, free: 5.215 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.382e-05/0.1145, allocations: 11.98 kB / 365.9 MB, free: 5.203 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.61e-05/0.1146, allocations: 11.92 kB / 365.9 MB, free: 5.191 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.999e-05/0.1146, allocations: 7.938 kB / 365.9 MB, free: 5.184 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002731/0.1149, allocations: 253.9 kB / 366.2 MB, free: 4.938 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.1149, allocations: 0 / 366.2 MB, free: 4.938 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003255/0.1152, allocations: 35.98 kB / 366.2 MB, free: 4.902 MB / 302.1 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.001179/0.1164, allocations: 411.7 kB / 366.6 MB, free: 4.629 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002521/0.1167, allocations: 83.83 kB / 366.7 MB, free: 4.547 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.1167, allocations: 0 / 366.7 MB, free: 4.547 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.161e-05/0.1168, allocations: 32.23 kB / 366.7 MB, free: 4.516 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004337/0.1172, allocations: 60.16 kB / 366.8 MB, free: 4.457 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006552/0.1179, allocations: 388.5 kB / 367.2 MB, free: 4.051 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003403/0.1182, allocations: 0.7397 MB / 367.9 MB, free: 3.285 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001057/0.1184, allocations: 33.77 kB / 367.9 MB, free: 3.25 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.604e-05/0.1184, allocations: 23.44 kB / 367.9 MB, free: 3.23 MB / 302.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1184, allocations: 0 / 367.9 MB, free: 3.23 MB / 302.1 MB Notification: Performance of Templates: time 0.008158/0.1266, allocations: 2.828 MB / 370.8 MB, free: 432 kB / 302.1 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches