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.001059/0.001059, allocations: 108.3 kB / 16.51 MB, free: 6.707 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.001084/0.001084, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.283/1.283, allocations: 222.9 MB / 241.1 MB, free: 13.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009725/0.0009726, allocations: 47.55 kB / 299.9 MB, free: 6.098 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1136, allocations: 49.45 MB / 349.4 MB, free: 4.641 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.003028/0.1166, allocations: 1.612 MB / 351 MB, free: 3.012 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00086/0.1175, allocations: 490.7 kB / 351.5 MB, free: 2.527 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001006/0.1177, allocations: 4 kB / 351.5 MB, free: 2.523 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.231e-05/0.1177, allocations: 0 / 351.5 MB, free: 2.523 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001527/0.1179, allocations: 11.92 kB / 351.5 MB, free: 2.512 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003048/0.1182, allocations: 48.33 kB / 351.5 MB, free: 2.465 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001022/0.1183, allocations: 47.84 kB / 351.6 MB, free: 2.418 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000115/0.1184, allocations: 16.17 kB / 351.6 MB, free: 2.402 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.528e-05/0.1185, allocations: 23.86 kB / 351.6 MB, free: 2.379 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.212e-05/0.1186, allocations: 23.86 kB / 351.7 MB, free: 2.355 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.236e-05/0.1186, allocations: 4 kB / 351.7 MB, free: 2.352 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.567e-05/0.1187, allocations: 0 / 351.7 MB, free: 2.352 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.677e-05/0.1187, allocations: 15.92 kB / 351.7 MB, free: 2.336 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.095e-05/0.1188, allocations: 31.8 kB / 351.7 MB, free: 2.305 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001254/0.1189, allocations: 43.81 kB / 351.7 MB, free: 2.262 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.1189, allocations: 3.938 kB / 351.8 MB, free: 2.258 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1189, allocations: 0 / 351.8 MB, free: 2.258 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.268e-06/0.119, allocations: 0 / 351.8 MB, free: 2.258 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.0005596/0.1195, allocations: 387.4 kB / 352.1 MB, free: 1.832 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.1196, allocations: 8.031 kB / 352.1 MB, free: 1.824 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.008e-05/0.1196, allocations: 8.844 kB / 352.1 MB, free: 1.816 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001971/0.1198, allocations: 200.1 kB / 352.3 MB, free: 1.582 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.268e-06/0.1198, allocations: 384 / 352.3 MB, free: 1.582 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.395e-05/0.1198, allocations: 8.375 kB / 352.4 MB, free: 1.574 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003172/0.1202, allocations: 105.2 kB / 352.5 MB, free: 1.453 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.1202, allocations: 0 / 352.5 MB, free: 1.453 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.439e-05/0.1202, allocations: 3.984 kB / 352.5 MB, free: 1.449 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.042e-06/0.1202, allocations: 0 / 352.5 MB, free: 1.449 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.236e-05/0.1203, allocations: 23.98 kB / 352.5 MB, free: 1.426 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003273/0.1206, allocations: 261.7 kB / 352.7 MB, free: 1.117 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.202e-05/0.1208, allocations: 49.14 kB / 352.8 MB, free: 1.051 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.265e-05/0.1208, allocations: 17.78 kB / 352.8 MB, free: 1.027 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.289e-05/0.1208, allocations: 7.922 kB / 352.8 MB, free: 1.02 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.54e-05/0.1209, allocations: 38.5 kB / 352.8 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of pre-optimization done (n=2): time 1.062e-06/0.1209, allocations: 4 kB / 352.9 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002649/0.1212, allocations: 69.52 kB / 352.9 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.647e-05/0.1212, allocations: 81.11 kB / 353 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001201/0.1214, allocations: 136.8 kB / 353.1 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.154e-05/0.1214, allocations: 25.7 kB / 353.2 MB, free: 0.625 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.123e-05/0.1214, allocations: 92.12 kB / 353.2 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.812e-05/0.1215, allocations: 12.17 kB / 353.3 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.17e-05/0.1215, allocations: 21.62 kB / 353.3 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.1216, allocations: 318.8 kB / 353.6 MB, free: 176 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.146e-05/0.1217, allocations: 7.984 kB / 353.6 MB, free: 168 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.802e-05/0.1217, allocations: 17.72 kB / 353.6 MB, free: 144 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.266e-05/0.1218, allocations: 37.7 kB / 353.7 MB, free: 100 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.1218, allocations: 0 / 353.7 MB, free: 100 kB / 286.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000113/0.1219, allocations: 53.67 kB / 353.7 MB, free: 40 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/0.1219, allocations: 4 kB / 353.7 MB, free: 36 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.1219, allocations: 3.938 kB / 353.7 MB, free: 32 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/0.122, allocations: 4 kB / 353.7 MB, free: 28 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.601e-05/0.122, allocations: 4 kB / 353.7 MB, free: 24 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.1221, allocations: 0 / 353.7 MB, free: 24 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.867e-05/0.1221, allocations: 8.047 kB / 353.7 MB, free: 16 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.477e-06/0.1221, allocations: 4 kB / 353.7 MB, free: 12 kB / 286.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 0.0001227/0.1222, allocations: 117.8 kB / 353.8 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.669e-05/0.1223, allocations: 45.59 kB / 353.9 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.511e-05/0.1224, allocations: 3.875 kB / 353.9 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.1224, allocations: 4 kB / 353.9 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.1224, allocations: 0 / 353.9 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.1224, allocations: 0 / 353.9 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001717/0.1226, allocations: 169.6 kB / 354.1 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.1226, allocations: 8.031 kB / 354.1 MB, free: 15.6 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.904e-05/0.1226, allocations: 11.92 kB / 354.1 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.522e-06/0.1226, allocations: 0 / 354.1 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.506e-06/0.1227, allocations: 0 / 354.1 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.1227, allocations: 0 / 354.1 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.1227, allocations: 4 kB / 354.1 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001635/0.1228, allocations: 160.2 kB / 354.2 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.877e-05/0.1229, allocations: 92.94 kB / 354.3 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.854e-05/0.1229, allocations: 8 kB / 354.3 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.984e-05/0.123, allocations: 7.969 kB / 354.4 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.748e-05/0.123, allocations: 3.938 kB / 354.4 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.062e-06/0.1231, allocations: 8 kB / 354.4 MB, free: 15.27 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.354e-05/0.1231, allocations: 107.2 kB / 354.5 MB, free: 15.17 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1231, allocations: 0 / 354.5 MB, free: 15.17 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002219/0.1234, allocations: 4 kB / 354.5 MB, free: 15.16 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 0.0001086/0.1235, allocations: 107.2 kB / 354.6 MB, free: 15.05 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001342/0.1236, allocations: 23.98 kB / 354.6 MB, free: 15.03 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1236, allocations: 0 / 354.6 MB, free: 15.03 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.692e-05/0.1237, allocations: 7.984 kB / 354.6 MB, free: 15.02 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004061/0.1241, allocations: 26.78 kB / 354.6 MB, free: 15 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003511/0.1245, allocations: 181.5 kB / 354.8 MB, free: 14.79 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000271/0.1247, allocations: 0.6887 MB / 355.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.315e-05/0.1248, allocations: 3.984 kB / 355.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.648e-05/0.1248, allocations: 15.44 kB / 355.5 MB, free: 14.05 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1248, allocations: 0 / 355.5 MB, free: 14.05 MB / 302.1 MB Notification: Performance of Templates: time 0.002804/0.1276, allocations: 0.5236 MB / 356 MB, free: 13.54 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins/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