Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.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.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001645/0.001645, allocations: 111.6 kB / 17.68 MB, free: 5.332 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.001653/0.001653, allocations: 192 kB / 18.62 MB, free: 4.41 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.436/1.436, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000985/0.0009851, allocations: 54.58 kB / 302.1 MB, free: 5.188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1131, allocations: 49.45 MB / 351.5 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.002631/0.1157, allocations: 1.535 MB / 353 MB, free: 2.16 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007495/0.1165, allocations: 494.6 kB / 353.5 MB, free: 1.672 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.92e-05/0.1166, allocations: 0 / 353.5 MB, free: 1.672 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.104e-05/0.1166, allocations: 3.938 kB / 353.5 MB, free: 1.668 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001121/0.1167, allocations: 23.84 kB / 353.6 MB, free: 1.645 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002296/0.117, allocations: 47.83 kB / 353.6 MB, free: 1.598 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.923e-05/0.1171, allocations: 47.8 kB / 353.6 MB, free: 1.551 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.418e-05/0.1172, allocations: 16.17 kB / 353.7 MB, free: 1.535 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.991e-05/0.1173, allocations: 23.91 kB / 353.7 MB, free: 1.512 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.367e-05/0.1173, allocations: 23.86 kB / 353.7 MB, free: 1.488 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.52e-05/0.1173, allocations: 4 kB / 353.7 MB, free: 1.484 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.567e-06/0.1173, allocations: 4 kB / 353.7 MB, free: 1.48 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.287e-05/0.1174, allocations: 15.94 kB / 353.7 MB, free: 1.465 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.261e-05/0.1174, allocations: 27.8 kB / 353.8 MB, free: 1.438 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 9.79e-05/0.1175, allocations: 55.75 kB / 353.8 MB, free: 1.383 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.1175, allocations: 7.922 kB / 353.8 MB, free: 1.375 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1176, allocations: 0 / 353.8 MB, free: 1.375 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.709e-06/0.1176, allocations: 0 / 353.8 MB, free: 1.375 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004032/0.118, allocations: 379.1 kB / 354.2 MB, free: 0.957 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.269e-05/0.118, allocations: 12.03 kB / 354.2 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.274e-05/0.118, allocations: 12.84 kB / 354.2 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002095/0.1183, allocations: 196.1 kB / 354.4 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.172e-05/0.1183, allocations: 4.375 kB / 354.4 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.738e-05/0.1183, allocations: 4.375 kB / 354.4 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002301/0.1185, allocations: 109.2 kB / 354.5 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.512e-06/0.1186, allocations: 0 / 354.5 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.343e-06/0.1186, allocations: 0 / 354.5 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.707e-06/0.1186, allocations: 3.938 kB / 354.5 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.841e-05/0.1187, allocations: 23.92 kB / 354.5 MB, free: 0.543 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002708/0.1189, allocations: 261.8 kB / 354.8 MB, free: 240 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.053e-05/0.119, allocations: 49.16 kB / 354.9 MB, free: 172 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.316e-05/0.1191, allocations: 17.77 kB / 354.9 MB, free: 148 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.788e-05/0.1191, allocations: 0 / 354.9 MB, free: 148 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.402e-05/0.1191, allocations: 42.5 kB / 354.9 MB, free: 96 kB / 286.1 MB Notification: Performance of pre-optimization done (n=2): time 1.122e-06/0.1191, allocations: 0 / 354.9 MB, free: 96 kB / 286.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002201/0.1194, allocations: 69.52 kB / 355 MB, free: 20 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.445e-05/0.1194, allocations: 77.11 kB / 355.1 MB, free: 15.93 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001089/0.1195, allocations: 144.7 kB / 355.2 MB, free: 15.78 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.289e-05/0.1196, allocations: 29.64 kB / 355.2 MB, free: 15.74 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.434e-05/0.1196, allocations: 92.14 kB / 355.3 MB, free: 15.65 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.282e-05/0.1196, allocations: 3.938 kB / 355.3 MB, free: 15.64 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.19e-05/0.1197, allocations: 25.88 kB / 355.3 MB, free: 15.61 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.243e-05/0.1198, allocations: 318.8 kB / 355.7 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.759e-05/0.1198, allocations: 4 kB / 355.7 MB, free: 15.29 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.081e-05/0.1198, allocations: 25.7 kB / 355.7 MB, free: 15.26 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.661e-05/0.1199, allocations: 29.77 kB / 355.7 MB, free: 15.22 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.1199, allocations: 4 kB / 355.7 MB, free: 15.22 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001028/0.12, allocations: 53.62 kB / 355.8 MB, free: 15.16 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.097e-05/0.1201, allocations: 4 kB / 355.8 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.007e-06/0.1201, allocations: 0 / 355.8 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.097e-05/0.1201, allocations: 0 / 355.8 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.339e-05/0.1201, allocations: 11.98 kB / 355.8 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.1202, allocations: 0 / 355.8 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.237e-05/0.1202, allocations: 0 / 355.8 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.644e-06/0.1202, allocations: 8.062 kB / 355.8 MB, free: 15.14 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 7.331e-05/0.1203, allocations: 125.7 kB / 355.9 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.622e-05/0.1204, allocations: 41.55 kB / 356 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.589e-05/0.1204, allocations: 7.875 kB / 356 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.1204, allocations: 4 kB / 356 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.1204, allocations: 4 kB / 356 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.1204, allocations: 3.984 kB / 356 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001551/0.1206, allocations: 169.6 kB / 356.1 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.856e-06/0.1206, allocations: 4 kB / 356.1 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.189e-05/0.1206, allocations: 8.031 kB / 356.2 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.1206, allocations: 0 / 356.2 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.741e-06/0.1206, allocations: 0 / 356.2 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.1206, allocations: 0 / 356.2 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.1207, allocations: 0 / 356.2 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000152/0.1208, allocations: 176.2 kB / 356.3 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.312e-05/0.1209, allocations: 100.9 kB / 356.4 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.42e-05/0.1209, allocations: 4 kB / 356.4 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.283e-05/0.121, allocations: 0 / 356.4 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.709e-05/0.121, allocations: 0 / 356.4 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.31e-06/0.121, allocations: 4 kB / 356.4 MB, free: 14.39 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.708e-05/0.1211, allocations: 107.2 kB / 356.5 MB, free: 14.29 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1211, allocations: 0 / 356.5 MB, free: 14.29 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002125/0.1213, allocations: 4 kB / 356.5 MB, free: 14.28 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 8.424e-05/0.1214, allocations: 103.8 kB / 356.6 MB, free: 14.17 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001229/0.1215, allocations: 27.91 kB / 356.7 MB, free: 14.14 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.1215, allocations: 0 / 356.7 MB, free: 14.14 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.372e-05/0.1216, allocations: 8 kB / 356.7 MB, free: 14.14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003017/0.1219, allocations: 19.95 kB / 356.7 MB, free: 14.12 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002964/0.1222, allocations: 171.7 kB / 356.9 MB, free: 13.92 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002298/0.1224, allocations: 0.6885 MB / 357.6 MB, free: 13.2 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.885e-05/0.1225, allocations: 7.938 kB / 357.6 MB, free: 13.2 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.189e-05/0.1225, allocations: 7.438 kB / 357.6 MB, free: 13.19 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1225, allocations: 0 / 357.6 MB, free: 13.19 MB / 302.1 MB Notification: Performance of Templates: time 0.002315/0.1248, allocations: 0.5767 MB / 358.1 MB, free: 12.62 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches