Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001232/0.001232, allocations: 115.5 kB / 17.7 MB, free: 5.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001486/0.001486, allocations: 188 kB / 18.63 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.425/1.425, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001034/0.001034, allocations: 43.11 kB / 302.1 MB, free: 5.16 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1111, allocations: 49.44 MB / 351.5 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.003604/0.1147, allocations: 1.883 MB / 353.4 MB, free: 1.793 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001756/0.1165, allocations: 1.044 MB / 354.4 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001155/0.1166, allocations: 4 kB / 354.4 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006189/0.1173, allocations: 159.5 kB / 354.6 MB, free: 0.582 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002898/0.1176, allocations: 115.5 kB / 354.7 MB, free: 480 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005346/0.1181, allocations: 194.4 kB / 354.9 MB, free: 288 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002433/0.1184, allocations: 183.5 kB / 355.1 MB, free: 104 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001219/0.1185, allocations: 29.55 kB / 355.1 MB, free: 76 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001245/0.1186, allocations: 79.73 kB / 355.2 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001138/0.1188, allocations: 71.58 kB / 355.3 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.824e-05/0.1188, allocations: 12 kB / 355.3 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001308/0.1189, allocations: 51.97 kB / 355.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.502e-05/0.119, allocations: 43.84 kB / 355.4 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.291e-05/0.1191, allocations: 71.47 kB / 355.4 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003052/0.1194, allocations: 199.3 kB / 355.6 MB, free: 15.55 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.1194, allocations: 4 kB / 355.6 MB, free: 15.55 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1194, allocations: 0 / 355.6 MB, free: 15.55 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.72e-06/0.1195, allocations: 0 / 355.6 MB, free: 15.55 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.0007776/0.1202, allocations: 0.5078 MB / 356.1 MB, free: 14.99 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.1203, allocations: 15.89 kB / 356.2 MB, free: 14.97 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.109e-05/0.1204, allocations: 16.75 kB / 356.2 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003631/0.1207, allocations: 266.8 kB / 356.4 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.941e-05/0.1208, allocations: 12.38 kB / 356.4 MB, free: 14.65 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.718e-05/0.1208, allocations: 8.125 kB / 356.4 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003311/0.1211, allocations: 150.7 kB / 356.6 MB, free: 14.47 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.1211, allocations: 0 / 356.6 MB, free: 14.47 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.527e-05/0.1212, allocations: 7.984 kB / 356.6 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.286e-06/0.1212, allocations: 3.984 kB / 356.6 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001159/0.1213, allocations: 39.92 kB / 356.6 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000474/0.1218, allocations: 354.3 kB / 357 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00022/0.122, allocations: 111.8 kB / 357.1 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.436e-05/0.1221, allocations: 50.5 kB / 357.1 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.666e-05/0.1221, allocations: 0 / 357.1 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001506/0.1223, allocations: 79.38 kB / 357.2 MB, free: 13.73 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.403e-06/0.1223, allocations: 0 / 357.2 MB, free: 13.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003541/0.1227, allocations: 141.3 kB / 357.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.82e-05/0.1228, allocations: 128.5 kB / 357.5 MB, free: 13.43 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002633/0.123, allocations: 269.2 kB / 357.8 MB, free: 13.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.554e-05/0.1231, allocations: 29.7 kB / 357.8 MB, free: 13.12 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.747e-05/0.1231, allocations: 116.1 kB / 357.9 MB, free: 13.01 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.729e-05/0.1232, allocations: 19.81 kB / 357.9 MB, free: 12.99 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.663e-05/0.1232, allocations: 33.7 kB / 357.9 MB, free: 12.95 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001104/0.1233, allocations: 330.8 kB / 358.3 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.099e-05/0.1234, allocations: 23.98 kB / 358.3 MB, free: 12.59 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.81e-05/0.1235, allocations: 69.94 kB / 358.4 MB, free: 12.5 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001349/0.1237, allocations: 80.22 kB / 358.4 MB, free: 12.41 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.1237, allocations: 0 / 358.4 MB, free: 12.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001953/0.1239, allocations: 117.8 kB / 358.6 MB, free: 12.29 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.1239, allocations: 4 kB / 358.6 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.1239, allocations: 0 / 358.6 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.1239, allocations: 4 kB / 358.6 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.523e-05/0.124, allocations: 15.94 kB / 358.6 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.827e-06/0.124, allocations: 7.984 kB / 358.6 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.551e-05/0.1241, allocations: 11.84 kB / 358.6 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.298e-06/0.1241, allocations: 4 kB / 358.6 MB, free: 12.24 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.0001226/0.1242, allocations: 146.5 kB / 358.7 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.023e-05/0.1243, allocations: 65.44 kB / 358.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.676e-05/0.1244, allocations: 21.72 kB / 358.8 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.676e-06/0.1244, allocations: 0 / 358.8 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.1244, allocations: 3.938 kB / 358.8 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.155e-06/0.1244, allocations: 7.922 kB / 358.8 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001893/0.1246, allocations: 225.5 kB / 359.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.1246, allocations: 0 / 359.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.768e-05/0.1247, allocations: 12 kB / 359.1 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.1247, allocations: 0 / 359.1 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.222e-05/0.1247, allocations: 4 kB / 359.1 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.1247, allocations: 3.984 kB / 359.1 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1247, allocations: 0 / 359.1 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002434/0.125, allocations: 166.3 kB / 359.2 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.265e-05/0.1251, allocations: 108.9 kB / 359.4 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.202e-05/0.1251, allocations: 7.984 kB / 359.4 MB, free: 11.37 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.709e-05/0.1252, allocations: 0 / 359.4 MB, free: 11.37 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.364e-05/0.1252, allocations: 8 kB / 359.4 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.028e-05/0.1252, allocations: 11.92 kB / 359.4 MB, free: 11.35 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001847/0.1254, allocations: 192.5 kB / 359.6 MB, free: 11.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1254, allocations: 0 / 359.6 MB, free: 11.16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002455/0.1257, allocations: 27.98 kB / 359.6 MB, free: 11.14 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.0009643/0.1267, allocations: 427.6 kB / 360 MB, free: 10.87 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002104/0.1269, allocations: 67.84 kB / 360.1 MB, free: 10.8 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.1269, allocations: 0 / 360.1 MB, free: 10.8 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.219e-05/0.127, allocations: 27.98 kB / 360.1 MB, free: 10.78 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003869/0.1274, allocations: 56.67 kB / 360.2 MB, free: 10.72 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00052/0.1279, allocations: 317.1 kB / 360.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002927/0.1282, allocations: 0.7319 MB / 361.2 MB, free: 9.621 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.792e-05/0.1283, allocations: 25.55 kB / 361.2 MB, free: 9.594 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.807e-05/0.1283, allocations: 15.44 kB / 361.2 MB, free: 9.578 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1283, allocations: 0 / 361.2 MB, free: 9.578 MB / 302.1 MB Notification: Performance of Templates: time 0.005829/0.1342, allocations: 2.46 MB / 363.7 MB, free: 7.156 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches