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.001557/0.001557, allocations: 109 kB / 16.92 MB, free: 6.145 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.001875/0.001875, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.335/1.335, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001473/0.001473, allocations: 56.44 kB / 300.6 MB, free: 5.879 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1271/0.1286, allocations: 49.44 MB / 350.1 MB, free: 4.434 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.002641/0.1313, allocations: 1.538 MB / 351.6 MB, free: 2.875 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007068/0.132, allocations: 0.4962 MB / 352.1 MB, free: 2.375 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.877e-05/0.1321, allocations: 0 / 352.1 MB, free: 2.375 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.9e-05/0.1321, allocations: 7.922 kB / 352.1 MB, free: 2.367 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001039/0.1323, allocations: 19.86 kB / 352.1 MB, free: 2.348 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002093/0.1325, allocations: 43.83 kB / 352.2 MB, free: 2.305 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 8.277e-05/0.1326, allocations: 47.8 kB / 352.2 MB, free: 2.258 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.998e-05/0.1327, allocations: 20.17 kB / 352.2 MB, free: 2.238 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.483e-05/0.1327, allocations: 19.94 kB / 352.2 MB, free: 2.219 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.64e-05/0.1328, allocations: 23.84 kB / 352.3 MB, free: 2.195 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.848e-05/0.1328, allocations: 7.938 kB / 352.3 MB, free: 2.188 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.301e-05/0.1328, allocations: 4 kB / 352.3 MB, free: 2.184 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.981e-05/0.1329, allocations: 15.92 kB / 352.3 MB, free: 2.168 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.747e-05/0.1329, allocations: 19.81 kB / 352.3 MB, free: 2.148 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 8.524e-05/0.133, allocations: 59.8 kB / 352.4 MB, free: 2.09 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.133, allocations: 0 / 352.4 MB, free: 2.09 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.133, allocations: 0 / 352.4 MB, free: 2.09 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.078e-06/0.133, allocations: 0 / 352.4 MB, free: 2.09 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.0003931/0.1334, allocations: 397.8 kB / 352.8 MB, free: 1.656 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.739e-05/0.1334, allocations: 8.031 kB / 352.8 MB, free: 1.648 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.15e-05/0.1335, allocations: 8.844 kB / 352.8 MB, free: 1.641 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001603/0.1336, allocations: 188.1 kB / 353 MB, free: 1.418 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.645e-06/0.1337, allocations: 4.375 kB / 353 MB, free: 1.414 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.538e-06/0.1337, allocations: 4.375 kB / 353 MB, free: 1.41 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000226/0.1339, allocations: 117.1 kB / 353.1 MB, free: 1.277 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.372e-06/0.1339, allocations: 0 / 353.1 MB, free: 1.277 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.334e-06/0.1339, allocations: 0 / 353.1 MB, free: 1.277 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.068e-06/0.1339, allocations: 0 / 353.1 MB, free: 1.277 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.452e-05/0.134, allocations: 23.92 kB / 353.1 MB, free: 1.254 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002659/0.1343, allocations: 261.8 kB / 353.4 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.458e-05/0.1344, allocations: 45.14 kB / 353.4 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.076e-05/0.1344, allocations: 21.78 kB / 353.4 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.225e-05/0.1345, allocations: 0 / 353.4 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.901e-05/0.1345, allocations: 38.56 kB / 353.5 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of pre-optimization done (n=2): time 8.22e-07/0.1345, allocations: 0 / 353.5 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002094/0.1347, allocations: 69.52 kB / 353.5 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.929e-05/0.1347, allocations: 77.11 kB / 353.6 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001098/0.1349, allocations: 145.8 kB / 353.7 MB, free: 500 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.099e-05/0.1349, allocations: 25.7 kB / 353.8 MB, free: 468 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.065e-05/0.1349, allocations: 84.39 kB / 353.9 MB, free: 380 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.315e-05/0.1349, allocations: 15.92 kB / 353.9 MB, free: 364 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.218e-05/0.135, allocations: 21.62 kB / 353.9 MB, free: 336 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 8.184e-05/0.1351, allocations: 318.7 kB / 354.2 MB, free: 8 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.784e-05/0.1351, allocations: 12.05 kB / 354.2 MB, free: 15.99 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.879e-05/0.1352, allocations: 21.66 kB / 354.2 MB, free: 15.96 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.399e-05/0.1353, allocations: 29.7 kB / 354.3 MB, free: 15.93 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.1353, allocations: 0 / 354.3 MB, free: 15.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001154/0.1354, allocations: 61.61 kB / 354.3 MB, free: 15.87 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.051e-05/0.1354, allocations: 4 kB / 354.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.406e-06/0.1354, allocations: 0 / 354.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.909e-06/0.1354, allocations: 0 / 354.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.044e-05/0.1355, allocations: 4 kB / 354.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/0.1355, allocations: 12 kB / 354.3 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.379e-05/0.1355, allocations: 0 / 354.3 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.045e-06/0.1356, allocations: 3.984 kB / 354.3 MB, free: 15.84 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 6.892e-05/0.1356, allocations: 121.8 kB / 354.5 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.756e-05/0.1357, allocations: 33.61 kB / 354.5 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.948e-05/0.1357, allocations: 19.8 kB / 354.5 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.1357, allocations: 0 / 354.5 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.1358, allocations: 4 kB / 354.5 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.434e-06/0.1358, allocations: 0 / 354.5 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001457/0.1359, allocations: 173.6 kB / 354.7 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.1359, allocations: 0 / 354.7 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.355e-05/0.136, allocations: 4 kB / 354.7 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.616e-06/0.136, allocations: 4 kB / 354.7 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.572e-06/0.136, allocations: 3.984 kB / 354.7 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.136, allocations: 0 / 354.7 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.136, allocations: 0 / 354.7 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001454/0.1361, allocations: 164.3 kB / 354.9 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.404e-05/0.1362, allocations: 89 kB / 355 MB, free: 15.13 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.404e-05/0.1362, allocations: 3.984 kB / 355 MB, free: 15.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.871e-05/0.1363, allocations: 7.984 kB / 355 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.259e-05/0.1363, allocations: 3.938 kB / 355 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.729e-06/0.1363, allocations: 4 kB / 355 MB, free: 15.11 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.294e-05/0.1364, allocations: 114.7 kB / 355.1 MB, free: 15 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1364, allocations: 0 / 355.1 MB, free: 15 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002154/0.1366, allocations: 8.031 kB / 355.1 MB, free: 15 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 7.69e-05/0.1367, allocations: 99.72 kB / 355.2 MB, free: 14.89 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001156/0.1368, allocations: 23.92 kB / 355.2 MB, free: 14.87 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.1369, allocations: 0 / 355.2 MB, free: 14.87 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.765e-05/0.1369, allocations: 11.94 kB / 355.2 MB, free: 14.86 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003318/0.1372, allocations: 25.7 kB / 355.2 MB, free: 14.83 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002785/0.1375, allocations: 175.7 kB / 355.4 MB, free: 14.63 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002087/0.1377, allocations: 0.6885 MB / 356.1 MB, free: 13.91 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.568e-05/0.1378, allocations: 4 kB / 356.1 MB, free: 13.91 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.293e-05/0.1378, allocations: 11.44 kB / 356.1 MB, free: 13.9 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1378, allocations: 0 / 356.1 MB, free: 13.9 MB / 302.1 MB Notification: Performance of Templates: time 0.002339/0.1402, allocations: 0.582 MB / 356.7 MB, free: 13.33 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