Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.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.RealSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001097/0.001097, allocations: 100 kB / 16.99 MB, free: 6.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001149/0.001149, allocations: 201.8 kB / 17.9 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.515/1.515, allocations: 227.2 MB / 245.9 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002428/0.0002429, allocations: 11.98 kB / 306.6 MB, free: 1.398 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1264/0.1266, allocations: 51.49 MB / 358.1 MB, free: 13.9 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample): time 0.001823/0.1285, allocations: 1.281 MB / 359.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009134/0.1294, allocations: 0.4991 MB / 359.9 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.931e-05/0.1295, allocations: 3.938 kB / 359.9 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.187e-05/0.1296, allocations: 0 / 359.9 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001334/0.1297, allocations: 11.98 kB / 359.9 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003317/0.1301, allocations: 55.06 kB / 359.9 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001058/0.1302, allocations: 27.91 kB / 360 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001179/0.1303, allocations: 12.17 kB / 360 MB, free: 12 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001317/0.1305, allocations: 27.91 kB / 360 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.863e-05/0.1305, allocations: 27.8 kB / 360 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.336e-05/0.1306, allocations: 0 / 360 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.43e-05/0.1306, allocations: 4 kB / 360 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.75e-05/0.1307, allocations: 7.984 kB / 360 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.943e-05/0.1307, allocations: 37.64 kB / 360.1 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001035/0.1308, allocations: 39.92 kB / 360.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.1308, allocations: 0 / 360.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1308, allocations: 0 / 360.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.1309, allocations: 0 / 360.1 MB, free: 11.86 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.0005395/0.1314, allocations: 375.3 kB / 360.5 MB, free: 11.44 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.856e-05/0.1315, allocations: 8.031 kB / 360.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001672/0.1316, allocations: 19.89 kB / 360.5 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002284/0.1319, allocations: 194.8 kB / 360.7 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.703e-05/0.1319, allocations: 11.95 kB / 360.7 MB, free: 11.17 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.167e-06/0.1319, allocations: 0 / 360.7 MB, free: 11.17 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002998/0.1322, allocations: 113.9 kB / 360.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.1322, allocations: 0 / 360.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.377e-05/0.1322, allocations: 4 kB / 360.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.899e-05/0.1323, allocations: 4 kB / 360.8 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.992e-05/0.1324, allocations: 31.92 kB / 360.9 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000403/0.1328, allocations: 270.6 kB / 361.1 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001215/0.1329, allocations: 71.78 kB / 361.2 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.406e-05/0.1329, allocations: 4.062 kB / 361.2 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.894e-05/0.133, allocations: 38.5 kB / 361.2 MB, free: 10.53 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 1.342e-06/0.133, allocations: 3.938 kB / 361.2 MB, free: 10.53 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002784/0.1333, allocations: 89.7 kB / 361.3 MB, free: 10.43 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.514e-05/0.1334, allocations: 106.8 kB / 361.4 MB, free: 10.3 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001269/0.1335, allocations: 144.4 kB / 361.6 MB, free: 10.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.462e-05/0.1335, allocations: 25.7 kB / 361.6 MB, free: 10.12 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.307e-05/0.1336, allocations: 88.14 kB / 361.7 MB, free: 10.04 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.654e-05/0.1336, allocations: 8.078 kB / 361.7 MB, free: 10.03 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.717e-06/0.1336, allocations: 4 kB / 361.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.1338, allocations: 322.8 kB / 362 MB, free: 9.699 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.445e-05/0.1338, allocations: 11.98 kB / 362 MB, free: 9.688 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.168e-05/0.1339, allocations: 39.36 kB / 362.1 MB, free: 9.637 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.73e-05/0.1339, allocations: 16 kB / 362.1 MB, free: 9.621 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.1339, allocations: 0 / 362.1 MB, free: 9.621 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001433/0.1341, allocations: 73.52 kB / 362.1 MB, free: 9.543 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.002e-05/0.1341, allocations: 4 kB / 362.1 MB, free: 9.539 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.1341, allocations: 4.219 kB / 362.1 MB, free: 9.535 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.699e-05/0.1341, allocations: 7.984 kB / 362.2 MB, free: 9.527 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.356e-05/0.1342, allocations: 11.94 kB / 362.2 MB, free: 9.516 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.202e-06/0.1342, allocations: 0 / 362.2 MB, free: 9.516 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.391e-05/0.1343, allocations: 11.98 kB / 362.2 MB, free: 9.504 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.036e-05/0.1343, allocations: 7.938 kB / 362.2 MB, free: 9.496 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000112/0.1344, allocations: 117.8 kB / 362.3 MB, free: 9.371 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.612e-05/0.1345, allocations: 57.53 kB / 362.4 MB, free: 9.309 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.739e-05/0.1346, allocations: 15.89 kB / 362.4 MB, free: 9.289 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.1346, allocations: 4 kB / 362.4 MB, free: 9.285 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.1346, allocations: 0 / 362.4 MB, free: 9.285 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.1346, allocations: 0 / 362.4 MB, free: 9.285 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002155/0.1348, allocations: 177.6 kB / 362.5 MB, free: 9.062 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.1348, allocations: 0 / 362.5 MB, free: 9.062 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.813e-05/0.1349, allocations: 12 kB / 362.6 MB, free: 9.051 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.028e-06/0.1349, allocations: 4 kB / 362.6 MB, free: 9.047 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.007e-05/0.1349, allocations: 3.984 kB / 362.6 MB, free: 9.043 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.1349, allocations: 0 / 362.6 MB, free: 9.043 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1349, allocations: 4 kB / 362.6 MB, free: 9.039 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002421/0.1352, allocations: 204.5 kB / 362.8 MB, free: 8.805 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.034e-05/0.1352, allocations: 101 kB / 362.9 MB, free: 8.688 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.755e-05/0.1353, allocations: 0 / 362.9 MB, free: 8.688 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.981e-05/0.1353, allocations: 4 kB / 362.9 MB, free: 8.684 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.643e-05/0.1354, allocations: 0 / 362.9 MB, free: 8.684 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.508e-06/0.1354, allocations: 4 kB / 362.9 MB, free: 8.68 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.245e-05/0.1355, allocations: 113.6 kB / 363 MB, free: 8.57 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1355, allocations: 0 / 363 MB, free: 8.57 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002197/0.1357, allocations: 11.94 kB / 363 MB, free: 8.559 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001122/0.1358, allocations: 99.25 kB / 363.1 MB, free: 8.453 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001445/0.136, allocations: 39.91 kB / 363.1 MB, free: 8.414 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.136, allocations: 0 / 363.1 MB, free: 8.414 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.776e-05/0.136, allocations: 8 kB / 363.1 MB, free: 8.406 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002872/0.1363, allocations: 24.45 kB / 363.2 MB, free: 8.383 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003562/0.1367, allocations: 214.5 kB / 363.4 MB, free: 8.137 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002785/0.137, allocations: 0.6926 MB / 364.1 MB, free: 7.418 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.243e-05/0.137, allocations: 11.92 kB / 364.1 MB, free: 7.406 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.521e-05/0.137, allocations: 11.44 kB / 364.1 MB, free: 7.395 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1371, allocations: 0 / 364.1 MB, free: 7.395 MB / 302.1 MB Notification: Performance of Templates: time 0.002908/0.14, allocations: 0.5602 MB / 364.7 MB, free: 6.844 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/ShiftSample/ShiftSample.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,shiftSample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample1.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.y,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,time