Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00139/0.00139, allocations: 109.6 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001438/0.001438, allocations: 208 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.524/1.524, allocations: 227.7 MB / 247.7 MB, free: 10.3 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001906/0.001907, allocations: 60.19 kB / 307.9 MB, free: 496 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09515/0.09707, allocations: 50.54 MB / 358.4 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.003564/0.1007, allocations: 1.901 MB / 360.3 MB, free: 12.01 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002083/0.1028, allocations: 1.196 MB / 361.5 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001117/0.1029, allocations: 3.938 kB / 361.5 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005716/0.1035, allocations: 163.4 kB / 361.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000396/0.1039, allocations: 155.4 kB / 361.8 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000484/0.1044, allocations: 155.5 kB / 362 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002599/0.1047, allocations: 195.4 kB / 362.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001179/0.1048, allocations: 41.53 kB / 362.2 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001158/0.1049, allocations: 83.62 kB / 362.3 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000111/0.1051, allocations: 67.69 kB / 362.4 MB, free: 9.957 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.621e-05/0.1051, allocations: 12 kB / 362.4 MB, free: 9.945 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001349/0.1052, allocations: 47.98 kB / 362.4 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.935e-05/0.1053, allocations: 47.83 kB / 362.5 MB, free: 9.852 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.678e-05/0.1054, allocations: 75.42 kB / 362.6 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003117/0.1057, allocations: 203.6 kB / 362.8 MB, free: 9.578 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1057, allocations: 4 kB / 362.8 MB, free: 9.574 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.845e-06/0.1058, allocations: 4 kB / 362.8 MB, free: 9.57 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.488e-06/0.1058, allocations: 0 / 362.8 MB, free: 9.57 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.0007728/0.1065, allocations: 0.5079 MB / 363.3 MB, free: 9.008 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.034e-05/0.1066, allocations: 11.97 kB / 363.3 MB, free: 8.996 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.763e-05/0.1067, allocations: 28.64 kB / 363.3 MB, free: 8.969 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003462/0.107, allocations: 262.8 kB / 363.6 MB, free: 8.668 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.562e-05/0.107, allocations: 4.375 kB / 363.6 MB, free: 8.664 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.654e-05/0.1071, allocations: 12.12 kB / 363.6 MB, free: 8.652 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003236/0.1074, allocations: 150.1 kB / 363.7 MB, free: 8.484 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.1074, allocations: 3.984 kB / 363.7 MB, free: 8.48 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.159e-05/0.1074, allocations: 0 / 363.7 MB, free: 8.48 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.042e-06/0.1074, allocations: 4 kB / 363.7 MB, free: 8.477 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001132/0.1076, allocations: 39.92 kB / 363.8 MB, free: 8.438 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005706/0.1081, allocations: 354.4 kB / 364.1 MB, free: 8.035 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002299/0.1084, allocations: 111.9 kB / 364.2 MB, free: 7.898 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.556e-05/0.1085, allocations: 50.5 kB / 364.3 MB, free: 7.84 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.729e-05/0.1085, allocations: 0 / 364.3 MB, free: 7.84 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001732/0.1087, allocations: 79.38 kB / 364.4 MB, free: 7.75 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.483e-06/0.1087, allocations: 0 / 364.4 MB, free: 7.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003568/0.109, allocations: 141.3 kB / 364.5 MB, free: 7.605 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.988e-05/0.1091, allocations: 132.5 kB / 364.6 MB, free: 7.445 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002981/0.1095, allocations: 272.9 kB / 364.9 MB, free: 7.172 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.934e-05/0.1095, allocations: 25.95 kB / 364.9 MB, free: 7.141 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.461e-05/0.1096, allocations: 120.1 kB / 365 MB, free: 7.02 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.958e-05/0.1096, allocations: 27.8 kB / 365.1 MB, free: 6.992 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.046e-05/0.1097, allocations: 29.72 kB / 365.1 MB, free: 6.957 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.1098, allocations: 334.8 kB / 365.4 MB, free: 6.621 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.054e-05/0.1099, allocations: 23.92 kB / 365.4 MB, free: 6.598 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.981e-05/0.11, allocations: 70 kB / 365.5 MB, free: 6.508 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001471/0.1102, allocations: 80.09 kB / 365.6 MB, free: 6.414 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.1102, allocations: 0 / 365.6 MB, free: 6.414 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002148/0.1104, allocations: 113.5 kB / 365.7 MB, free: 6.297 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.408e-05/0.1104, allocations: 7.984 kB / 365.7 MB, free: 6.289 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.1104, allocations: 4 kB / 365.7 MB, free: 6.285 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.195e-05/0.1104, allocations: 0 / 365.7 MB, free: 6.285 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.003e-05/0.1105, allocations: 19.92 kB / 365.7 MB, free: 6.266 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.194e-06/0.1105, allocations: 3.984 kB / 365.7 MB, free: 6.262 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.383e-05/0.1106, allocations: 19.83 kB / 365.8 MB, free: 6.242 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.996e-06/0.1106, allocations: 4 kB / 365.8 MB, free: 6.238 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,sample1.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 (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.000132/0.1108, allocations: 142.3 kB / 365.9 MB, free: 6.09 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.488e-05/0.1109, allocations: 61.45 kB / 366 MB, free: 6.023 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.226e-05/0.1109, allocations: 25.7 kB / 366 MB, free: 6 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.1109, allocations: 0 / 366 MB, free: 6 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.1109, allocations: 8 kB / 366 MB, free: 5.992 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.1109, allocations: 3.938 kB / 366 MB, free: 5.988 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002167/0.1112, allocations: 229.4 kB / 366.2 MB, free: 5.715 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.095e-06/0.1112, allocations: 4 kB / 366.2 MB, free: 5.711 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.545e-05/0.1112, allocations: 4 kB / 366.2 MB, free: 5.707 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.1112, allocations: 4.062 kB / 366.2 MB, free: 5.703 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.193e-05/0.1112, allocations: 8 kB / 366.2 MB, free: 5.695 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.546e-06/0.1112, allocations: 3.938 kB / 366.2 MB, free: 5.691 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1112, allocations: 0 / 366.2 MB, free: 5.691 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002596/0.1115, allocations: 154.5 kB / 366.4 MB, free: 5.516 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.707e-05/0.1116, allocations: 104.9 kB / 366.5 MB, free: 5.395 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.101e-05/0.1117, allocations: 7.984 kB / 366.5 MB, free: 5.387 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.755e-05/0.1117, allocations: 4 kB / 366.5 MB, free: 5.383 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.492e-05/0.1118, allocations: 8 kB / 366.5 MB, free: 5.375 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.667e-05/0.1118, allocations: 15.86 kB / 366.5 MB, free: 5.359 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002082/0.112, allocations: 196.5 kB / 366.7 MB, free: 5.164 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.112, allocations: 0 / 366.7 MB, free: 5.164 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002494/0.1123, allocations: 31.89 kB / 366.8 MB, free: 5.133 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,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,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 (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.001453/0.1137, allocations: 423.1 kB / 367.2 MB, free: 4.871 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002194/0.114, allocations: 71.84 kB / 367.2 MB, free: 4.801 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.114, allocations: 0 / 367.2 MB, free: 4.801 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.373e-05/0.114, allocations: 27.98 kB / 367.3 MB, free: 4.773 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003977/0.1145, allocations: 61.33 kB / 367.3 MB, free: 4.719 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006017/0.1151, allocations: 358.8 kB / 367.7 MB, free: 4.324 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003682/0.1154, allocations: 0.728 MB / 368.4 MB, free: 3.57 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.774e-05/0.1155, allocations: 19.44 kB / 368.4 MB, free: 3.551 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1155, allocations: 0 / 368.4 MB, free: 3.551 MB / 302.1 MB Notification: Performance of Templates: time 0.005254/0.1208, allocations: 2.671 MB / 371.1 MB, free: 0.8945 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches