Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.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.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000956/0.0009558, allocations: 96.94 kB / 18.01 MB, free: 5.73 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00111/0.00111, allocations: 208.1 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.429/1.429, allocations: 227.7 MB / 247.5 MB, free: 9.508 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002438/0.0002438, allocations: 8 kB / 308.4 MB, free: 0.582 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1054, allocations: 51.52 MB / 359.9 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.002337/0.1078, allocations: 1.634 MB / 361.5 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002195/0.11, allocations: 1.259 MB / 362.8 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001696/0.1102, allocations: 3.938 kB / 362.8 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003286/0.1105, allocations: 59.8 kB / 362.9 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003487/0.1109, allocations: 115.6 kB / 363 MB, free: 9.973 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007198/0.1116, allocations: 211.2 kB / 363.2 MB, free: 9.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002841/0.1119, allocations: 179.5 kB / 363.4 MB, free: 9.594 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001306/0.1121, allocations: 37.66 kB / 363.4 MB, free: 9.559 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001251/0.1122, allocations: 63.59 kB / 363.5 MB, free: 9.496 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001413/0.1124, allocations: 83.66 kB / 363.5 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.148e-05/0.1124, allocations: 4 kB / 363.5 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001666/0.1126, allocations: 51.97 kB / 363.6 MB, free: 9.359 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.873e-05/0.1127, allocations: 51.72 kB / 363.6 MB, free: 9.309 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000102/0.1128, allocations: 105.1 kB / 363.7 MB, free: 9.199 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002577/0.113, allocations: 183.8 kB / 363.9 MB, free: 9.02 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.113, allocations: 0 / 363.9 MB, free: 9.02 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1131, allocations: 8 kB / 363.9 MB, free: 9.012 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.122e-06/0.1131, allocations: 0 / 363.9 MB, free: 9.012 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007491/0.1138, allocations: 0.5078 MB / 364.4 MB, free: 8.449 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.1139, allocations: 12.03 kB / 364.5 MB, free: 8.438 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.837e-05/0.1139, allocations: 24.66 kB / 364.5 MB, free: 8.414 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003766/0.1143, allocations: 291.5 kB / 364.8 MB, free: 8.09 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.193e-05/0.1144, allocations: 4.375 kB / 364.8 MB, free: 8.086 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.994e-05/0.1144, allocations: 12.12 kB / 364.8 MB, free: 8.074 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000406/0.1148, allocations: 195 kB / 365 MB, free: 7.855 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.256e-06/0.1148, allocations: 4 kB / 365 MB, free: 7.852 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.624e-05/0.1148, allocations: 0 / 365 MB, free: 7.852 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.1149, allocations: 0 / 365 MB, free: 7.852 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001403/0.115, allocations: 51.91 kB / 365 MB, free: 7.801 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006156/0.1156, allocations: 387.3 kB / 365.4 MB, free: 7.363 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003047/0.116, allocations: 150.4 kB / 365.5 MB, free: 7.18 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001221/0.1161, allocations: 55.42 kB / 365.6 MB, free: 7.113 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.972e-05/0.1161, allocations: 11.98 kB / 365.6 MB, free: 7.102 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002483/0.1164, allocations: 75.33 kB / 365.7 MB, free: 7.016 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.903e-06/0.1164, allocations: 0 / 365.7 MB, free: 7.016 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004686/0.1169, allocations: 165.6 kB / 365.8 MB, free: 6.848 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001315/0.117, allocations: 199.9 kB / 366 MB, free: 6.609 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004043/0.1174, allocations: 342.9 kB / 366.4 MB, free: 6.266 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.607e-05/0.1175, allocations: 29.69 kB / 366.4 MB, free: 6.23 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001344/0.1176, allocations: 136.4 kB / 366.5 MB, free: 6.09 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.541e-05/0.1177, allocations: 23.8 kB / 366.6 MB, free: 6.066 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.632e-05/0.1177, allocations: 21.72 kB / 366.6 MB, free: 6.039 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.1179, allocations: 342.8 kB / 366.9 MB, free: 5.695 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.322e-05/0.118, allocations: 23.98 kB / 366.9 MB, free: 5.672 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001275/0.1181, allocations: 96.56 kB / 367 MB, free: 5.547 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001942/0.1183, allocations: 105.9 kB / 367.1 MB, free: 5.422 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.1183, allocations: 0 / 367.1 MB, free: 5.422 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002929/0.1186, allocations: 145.3 kB / 367.3 MB, free: 5.273 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.295e-05/0.1186, allocations: 7.984 kB / 367.3 MB, free: 5.266 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.1186, allocations: 0 / 367.3 MB, free: 5.266 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.786e-05/0.1187, allocations: 4 kB / 367.3 MB, free: 5.262 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001236/0.1188, allocations: 19.94 kB / 367.3 MB, free: 5.242 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.135e-05/0.1188, allocations: 7.984 kB / 367.3 MB, free: 5.234 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.888e-05/0.1189, allocations: 7.938 kB / 367.3 MB, free: 5.227 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.34e-05/0.1189, allocations: 8 kB / 367.3 MB, free: 5.219 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001621/0.1191, allocations: 165.8 kB / 367.5 MB, free: 5.047 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001202/0.1193, allocations: 81.66 kB / 367.6 MB, free: 4.961 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.544e-05/0.1193, allocations: 25.73 kB / 367.6 MB, free: 4.934 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.1193, allocations: 4 kB / 367.6 MB, free: 4.93 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.1194, allocations: 4 kB / 367.6 MB, free: 4.926 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.037e-06/0.1194, allocations: 11.92 kB / 367.6 MB, free: 4.914 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000261/0.1196, allocations: 249.4 kB / 367.9 MB, free: 4.621 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.514e-06/0.1196, allocations: 0 / 367.9 MB, free: 4.621 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.594e-05/0.1197, allocations: 12 kB / 367.9 MB, free: 4.609 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.23e-06/0.1197, allocations: 8.094 kB / 367.9 MB, free: 4.602 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.363e-05/0.1198, allocations: 3.984 kB / 367.9 MB, free: 4.598 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.888e-06/0.1198, allocations: 4 kB / 367.9 MB, free: 4.594 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.1198, allocations: 0 / 367.9 MB, free: 4.594 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000297/0.1201, allocations: 195.2 kB / 368.1 MB, free: 4.375 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000116/0.1202, allocations: 116.8 kB / 368.2 MB, free: 4.242 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.435e-05/0.1203, allocations: 4 kB / 368.2 MB, free: 4.238 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.265e-05/0.1203, allocations: 4 kB / 368.2 MB, free: 4.234 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.002e-05/0.1204, allocations: 11.98 kB / 368.2 MB, free: 4.223 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.008e-05/0.1204, allocations: 7.938 kB / 368.2 MB, free: 4.215 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002558/0.1207, allocations: 253.9 kB / 368.5 MB, free: 3.965 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1207, allocations: 0 / 368.5 MB, free: 3.965 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002942/0.121, allocations: 39.98 kB / 368.5 MB, free: 3.926 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample1.y,shiftSample1.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 (11): * Single equations (assignments): 9 * 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.001036/0.122, allocations: 422 kB / 368.9 MB, free: 3.648 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002498/0.1223, allocations: 83.83 kB / 369 MB, free: 3.566 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.1223, allocations: 0 / 369 MB, free: 3.566 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.273e-05/0.1224, allocations: 31.92 kB / 369 MB, free: 3.535 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004931/0.1229, allocations: 78.47 kB / 369.1 MB, free: 3.457 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007888/0.1237, allocations: 487.8 kB / 369.6 MB, free: 2.941 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003975/0.1241, allocations: 0.7518 MB / 370.3 MB, free: 2.164 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.24e-05/0.1242, allocations: 19.44 kB / 370.4 MB, free: 2.145 MB / 302.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1242, allocations: 0 / 370.4 MB, free: 2.145 MB / 302.1 MB Notification: Performance of Templates: time 0.1878/0.312, allocations: 3.095 MB / 373.5 MB, free: 18.59 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches