Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001256/0.001256, allocations: 115.8 kB / 18.4 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001359/0.001359, allocations: 203.4 kB / 19.35 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.36/1.36, allocations: 227.4 MB / 247.5 MB, free: 10.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001294, allocations: 51.81 kB / 308.4 MB, free: 15.82 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1296/0.1309, allocations: 50.54 MB / 358.9 MB, free: 13.26 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.003594/0.1346, allocations: 1.552 MB / 360.5 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001141/0.1358, allocations: 0.561 MB / 361 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001065/0.1359, allocations: 0 / 361 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 6.348e-05/0.136, allocations: 7.875 kB / 361 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001743/0.1362, allocations: 15.92 kB / 361 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003923/0.1366, allocations: 59.75 kB / 361.1 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001369/0.1367, allocations: 43.8 kB / 361.1 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001308/0.1369, allocations: 28.16 kB / 361.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001327/0.137, allocations: 27.91 kB / 361.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.519e-05/0.1371, allocations: 23.86 kB / 361.2 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.51e-05/0.1371, allocations: 0 / 361.2 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.732e-05/0.1372, allocations: 8 kB / 361.2 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.907e-05/0.1372, allocations: 15.92 kB / 361.2 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.555e-05/0.1373, allocations: 23.81 kB / 361.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001757/0.1375, allocations: 63.67 kB / 361.3 MB, free: 10.82 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.1375, allocations: 4 kB / 361.3 MB, free: 10.82 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1375, allocations: 4 kB / 361.3 MB, free: 10.82 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.093e-06/0.1375, allocations: 0 / 361.3 MB, free: 10.82 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006193/0.1381, allocations: 387 kB / 361.7 MB, free: 10.39 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.026e-05/0.1382, allocations: 12.03 kB / 361.7 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001866/0.1384, allocations: 16.83 kB / 361.7 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003211/0.1387, allocations: 207.7 kB / 361.9 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.015e-06/0.1387, allocations: 4.375 kB / 361.9 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.909e-05/0.1388, allocations: 7.938 kB / 362 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003166/0.1391, allocations: 101 kB / 362 MB, free: 9.996 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.1391, allocations: 0 / 362 MB, free: 9.996 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.053e-05/0.1391, allocations: 0 / 362 MB, free: 9.996 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.1391, allocations: 3.984 kB / 362.1 MB, free: 9.992 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.821e-05/0.1392, allocations: 23.92 kB / 362.1 MB, free: 9.969 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003724/0.1396, allocations: 257.8 kB / 362.3 MB, free: 9.664 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.874e-05/0.1397, allocations: 45.14 kB / 362.4 MB, free: 9.602 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.536e-05/0.1398, allocations: 25.78 kB / 362.4 MB, free: 9.57 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.146e-05/0.1398, allocations: 7.984 kB / 362.4 MB, free: 9.562 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.784e-05/0.1398, allocations: 34.56 kB / 362.4 MB, free: 9.52 MB / 302.1 MB Notification: Performance of pre-optimization done (n=2): time 1.473e-06/0.1398, allocations: 0 / 362.4 MB, free: 9.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002763/0.1401, allocations: 69.52 kB / 362.5 MB, free: 9.445 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.846e-05/0.1402, allocations: 81.36 kB / 362.6 MB, free: 9.348 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001524/0.1404, allocations: 149.7 kB / 362.7 MB, free: 9.191 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.93e-05/0.1404, allocations: 25.7 kB / 362.8 MB, free: 9.16 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.278e-05/0.1405, allocations: 100 kB / 362.9 MB, free: 9.059 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.82e-05/0.1405, allocations: 3.906 kB / 362.9 MB, free: 9.055 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.794e-05/0.1406, allocations: 17.72 kB / 362.9 MB, free: 9.031 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.1407, allocations: 314.8 kB / 363.2 MB, free: 8.715 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.163e-05/0.1407, allocations: 15.94 kB / 363.2 MB, free: 8.699 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.966e-05/0.1408, allocations: 21.7 kB / 363.2 MB, free: 8.672 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.97e-05/0.1409, allocations: 29.7 kB / 363.3 MB, free: 8.637 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.1409, allocations: 0 / 363.3 MB, free: 8.637 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001129/0.141, allocations: 57.62 kB / 363.3 MB, free: 8.574 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/0.141, allocations: 8.031 kB / 363.3 MB, free: 8.566 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.141, allocations: 4 kB / 363.3 MB, free: 8.562 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.755e-05/0.1411, allocations: 0 / 363.3 MB, free: 8.562 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.323e-05/0.1411, allocations: 7.984 kB / 363.3 MB, free: 8.555 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.233e-06/0.1412, allocations: 3.984 kB / 363.3 MB, free: 8.551 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.946e-05/0.1412, allocations: 7.938 kB / 363.3 MB, free: 8.543 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.384e-06/0.1412, allocations: 0 / 363.3 MB, free: 8.543 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 0.0001014/0.1413, allocations: 117.8 kB / 363.5 MB, free: 8.418 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.323e-05/0.1414, allocations: 49.53 kB / 363.5 MB, free: 8.363 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.532e-05/0.1414, allocations: 11.88 kB / 363.5 MB, free: 8.348 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.1414, allocations: 0 / 363.5 MB, free: 8.348 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.1415, allocations: 0 / 363.5 MB, free: 8.348 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.1415, allocations: 3.938 kB / 363.5 MB, free: 8.344 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001802/0.1416, allocations: 173.6 kB / 363.7 MB, free: 8.125 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.1417, allocations: 0 / 363.7 MB, free: 8.125 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.663e-05/0.1417, allocations: 15.91 kB / 363.7 MB, free: 8.109 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.1417, allocations: 0 / 363.7 MB, free: 8.109 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.334e-05/0.1417, allocations: 4 kB / 363.7 MB, free: 8.105 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.1418, allocations: 4.031 kB / 363.7 MB, free: 8.102 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.1418, allocations: 0 / 363.7 MB, free: 8.102 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001692/0.1419, allocations: 168.2 kB / 363.9 MB, free: 7.918 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.658e-05/0.142, allocations: 89 kB / 364 MB, free: 7.812 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.654e-05/0.142, allocations: 0 / 364 MB, free: 7.812 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.682e-05/0.1421, allocations: 4 kB / 364 MB, free: 7.809 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.885e-05/0.1421, allocations: 11.97 kB / 364 MB, free: 7.797 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.058e-06/0.1422, allocations: 0 / 364 MB, free: 7.797 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.11e-05/0.1422, allocations: 114.8 kB / 364.1 MB, free: 7.688 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.1422, allocations: 0 / 364.1 MB, free: 7.688 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002288/0.1425, allocations: 4 kB / 364.1 MB, free: 7.684 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.0001185/0.1426, allocations: 95.25 kB / 364.2 MB, free: 7.582 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001606/0.1428, allocations: 27.98 kB / 364.2 MB, free: 7.555 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.1428, allocations: 3.938 kB / 364.2 MB, free: 7.551 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.977e-05/0.1428, allocations: 11.98 kB / 364.2 MB, free: 7.539 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003466/0.1432, allocations: 22.42 kB / 364.2 MB, free: 7.52 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003667/0.1436, allocations: 159.5 kB / 364.4 MB, free: 7.336 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003025/0.1439, allocations: 0.6887 MB / 365.1 MB, free: 6.621 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.754e-05/0.1439, allocations: 4 kB / 365.1 MB, free: 6.617 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.582e-05/0.144, allocations: 19.38 kB / 365.1 MB, free: 6.598 MB / 302.1 MB Notification: Performance of SimCode: time 2e-07/0.144, allocations: 0 / 365.1 MB, free: 6.598 MB / 302.1 MB Notification: Performance of Templates: time 0.003072/0.147, allocations: 0.5678 MB / 365.7 MB, free: 6.039 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches