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.001494/0.001494, allocations: 103.1 kB / 17.59 MB, free: 5.426 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.001766/0.001766, allocations: 191.6 kB / 18.52 MB, free: 4.504 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.466/1.466, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001508/0.001508, allocations: 47.61 kB / 301.3 MB, free: 5.883 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1066, allocations: 49.45 MB / 350.7 MB, free: 4.43 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.003431/0.11, allocations: 1.88 MB / 352.6 MB, free: 2.527 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001748/0.1118, allocations: 1.056 MB / 353.7 MB, free: 1.465 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001124/0.1119, allocations: 4 kB / 353.7 MB, free: 1.461 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005794/0.1125, allocations: 152.7 kB / 353.8 MB, free: 1.312 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002906/0.1128, allocations: 119.5 kB / 353.9 MB, free: 1.195 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000535/0.1134, allocations: 192.6 kB / 354.1 MB, free: 1.012 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002362/0.1136, allocations: 179.5 kB / 354.3 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001222/0.1138, allocations: 41.55 kB / 354.3 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001047/0.1139, allocations: 75.64 kB / 354.4 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001074/0.114, allocations: 71.67 kB / 354.5 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.048e-05/0.114, allocations: 15.94 kB / 354.5 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001331/0.1142, allocations: 43.98 kB / 354.5 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.142e-05/0.1143, allocations: 43.83 kB / 354.6 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.119e-05/0.1143, allocations: 71.55 kB / 354.7 MB, free: 492 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002751/0.1146, allocations: 195.7 kB / 354.9 MB, free: 296 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.1146, allocations: 3.938 kB / 354.9 MB, free: 292 kB / 286.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.1146, allocations: 0 / 354.9 MB, free: 292 kB / 286.1 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.1147, allocations: 0 / 354.9 MB, free: 292 kB / 286.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.0007406/0.1154, allocations: 0.5118 MB / 355.4 MB, free: 15.72 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.372e-05/0.1154, allocations: 15.89 kB / 355.4 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001149/0.1156, allocations: 16.75 kB / 355.4 MB, free: 15.69 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000291/0.1159, allocations: 266.8 kB / 355.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.588e-05/0.1159, allocations: 4.375 kB / 355.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.858e-05/0.1159, allocations: 16.06 kB / 355.7 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003019/0.1162, allocations: 138.7 kB / 355.8 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.704e-06/0.1162, allocations: 0 / 355.8 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.665e-05/0.1163, allocations: 8 kB / 355.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.1163, allocations: 0 / 355.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001007/0.1164, allocations: 31.92 kB / 355.9 MB, free: 15.17 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004519/0.1168, allocations: 366.4 kB / 356.2 MB, free: 14.76 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002102/0.1171, allocations: 107.9 kB / 356.3 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.051e-05/0.1172, allocations: 46.56 kB / 356.4 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.206e-05/0.1172, allocations: 0 / 356.4 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001554/0.1173, allocations: 79.39 kB / 356.4 MB, free: 14.48 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.613e-06/0.1174, allocations: 0 / 356.4 MB, free: 14.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003427/0.1177, allocations: 141.4 kB / 356.6 MB, free: 14.34 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.89e-05/0.1178, allocations: 136.5 kB / 356.7 MB, free: 14.17 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002554/0.1181, allocations: 264.9 kB / 357 MB, free: 13.91 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.886e-05/0.1181, allocations: 29.7 kB / 357 MB, free: 13.87 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.509e-05/0.1182, allocations: 112.1 kB / 357.1 MB, free: 13.76 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.451e-05/0.1182, allocations: 23.73 kB / 357.1 MB, free: 13.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.01e-05/0.1183, allocations: 29.97 kB / 357.2 MB, free: 13.7 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001119/0.1184, allocations: 334.8 kB / 357.5 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.926e-05/0.1185, allocations: 19.98 kB / 357.5 MB, free: 13.34 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.936e-05/0.1186, allocations: 70 kB / 357.6 MB, free: 13.25 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001347/0.1187, allocations: 88.44 kB / 357.7 MB, free: 13.15 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.1187, allocations: 3.938 kB / 357.7 MB, free: 13.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002085/0.1189, allocations: 109.4 kB / 357.8 MB, free: 13.04 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.453e-05/0.119, allocations: 11.98 kB / 357.8 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.97e-06/0.119, allocations: 4.125 kB / 357.8 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.459e-05/0.119, allocations: 4 kB / 357.8 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.791e-05/0.1191, allocations: 8 kB / 357.8 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.1191, allocations: 4 kB / 357.8 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.239e-05/0.1192, allocations: 19.83 kB / 357.8 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.687e-06/0.1192, allocations: 7.938 kB / 357.8 MB, free: 12.98 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.0001963/0.1194, allocations: 142.3 kB / 358 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.988e-05/0.1195, allocations: 57.45 kB / 358 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.234e-05/0.1195, allocations: 29.77 kB / 358.1 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.888e-06/0.1195, allocations: 4 kB / 358.1 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.1196, allocations: 0 / 358.1 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.1196, allocations: 3.938 kB / 358.1 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001811/0.1197, allocations: 221.5 kB / 358.3 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/0.1198, allocations: 4 kB / 358.3 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.717e-05/0.1198, allocations: 7.984 kB / 358.3 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.1198, allocations: 0 / 358.3 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.149e-05/0.1198, allocations: 4 kB / 358.3 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.1198, allocations: 0 / 358.3 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.021e-06/0.1198, allocations: 4 kB / 358.3 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002339/0.1201, allocations: 158.4 kB / 358.5 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.364e-05/0.1202, allocations: 104.9 kB / 358.6 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.056e-05/0.1202, allocations: 4.062 kB / 358.6 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.104e-05/0.1203, allocations: 8 kB / 358.6 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.46e-05/0.1203, allocations: 11.98 kB / 358.6 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.475e-05/0.1203, allocations: 7.938 kB / 358.6 MB, free: 12.11 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001848/0.1205, allocations: 192.5 kB / 358.8 MB, free: 11.92 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1205, allocations: 0 / 358.8 MB, free: 11.92 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002565/0.1208, allocations: 32 kB / 358.8 MB, free: 11.89 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.0009613/0.1218, allocations: 421.6 kB / 359.2 MB, free: 11.62 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002108/0.122, allocations: 75.97 kB / 359.3 MB, free: 11.55 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.122, allocations: 0 / 359.3 MB, free: 11.55 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.518e-05/0.1221, allocations: 27.94 kB / 359.3 MB, free: 11.52 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003958/0.1225, allocations: 74.95 kB / 359.4 MB, free: 11.46 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005473/0.123, allocations: 342.8 kB / 359.7 MB, free: 11.08 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003091/0.1234, allocations: 0.7358 MB / 360.5 MB, free: 10.32 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.23e-05/0.1234, allocations: 23.44 kB / 360.5 MB, free: 10.3 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1234, allocations: 0 / 360.5 MB, free: 10.3 MB / 302.1 MB Notification: Performance of Templates: time 0.004637/0.1281, allocations: 2.584 MB / 363.1 MB, free: 7.723 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 -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