Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.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.RealSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001248/0.001248, allocations: 113.6 kB / 17.69 MB, free: 5.309 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.001368/0.001368, allocations: 192 kB / 18.63 MB, free: 4.375 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.533/1.533, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001023/0.001023, allocations: 47.08 kB / 302.1 MB, free: 5.168 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1151, allocations: 49.44 MB / 351.5 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample): time 0.003156/0.1183, allocations: 1.57 MB / 353.1 MB, free: 2.117 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008076/0.1191, allocations: 0.4884 MB / 353.6 MB, free: 1.625 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.854e-05/0.1192, allocations: 7.938 kB / 353.6 MB, free: 1.617 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.188e-05/0.1192, allocations: 3.938 kB / 353.6 MB, free: 1.613 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001308/0.1194, allocations: 11.91 kB / 353.6 MB, free: 1.602 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002538/0.1197, allocations: 55.45 kB / 353.6 MB, free: 1.551 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001046/0.1198, allocations: 39.86 kB / 353.7 MB, free: 1.512 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001055/0.1199, allocations: 24.16 kB / 353.7 MB, free: 1.488 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.807e-05/0.1199, allocations: 27.8 kB / 353.7 MB, free: 1.461 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.331e-05/0.12, allocations: 19.92 kB / 353.7 MB, free: 1.441 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.568e-05/0.12, allocations: 0 / 353.7 MB, free: 1.441 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.254e-05/0.1201, allocations: 4 kB / 353.8 MB, free: 1.438 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.097e-05/0.1201, allocations: 19.92 kB / 353.8 MB, free: 1.418 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.556e-05/0.1202, allocations: 27.81 kB / 353.8 MB, free: 1.391 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001092/0.1203, allocations: 55.73 kB / 353.9 MB, free: 1.336 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.085e-06/0.1203, allocations: 0 / 353.9 MB, free: 1.336 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1203, allocations: 4 kB / 353.9 MB, free: 1.332 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.45e-06/0.1203, allocations: 0 / 353.9 MB, free: 1.332 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.0004829/0.1208, allocations: 387 kB / 354.2 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.1208, allocations: 11.89 kB / 354.2 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.751e-05/0.1209, allocations: 8.844 kB / 354.3 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002326/0.1211, allocations: 204 kB / 354.5 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.332e-05/0.1211, allocations: 8.375 kB / 354.5 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.291e-05/0.1211, allocations: 4.375 kB / 354.5 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002672/0.1214, allocations: 122 kB / 354.6 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.1214, allocations: 0 / 354.6 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.857e-06/0.1215, allocations: 4 kB / 354.6 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.1215, allocations: 0 / 354.6 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.704e-05/0.1215, allocations: 27.92 kB / 354.6 MB, free: 476 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003485/0.1219, allocations: 270.5 kB / 354.9 MB, free: 148 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001103/0.122, allocations: 71.78 kB / 355 MB, free: 48 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.173e-05/0.1221, allocations: 34.62 kB / 355 MB, free: 4 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.132e-05/0.1221, allocations: 0 / 355 MB, free: 4 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.888e-05/0.1222, allocations: 34.56 kB / 355 MB, free: 15.96 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 1.022e-06/0.1222, allocations: 7.938 kB / 355 MB, free: 15.95 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002591/0.1224, allocations: 81.52 kB / 355.1 MB, free: 15.87 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.709e-05/0.1225, allocations: 110.8 kB / 355.2 MB, free: 15.73 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000128/0.1227, allocations: 140.6 kB / 355.4 MB, free: 15.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.495e-05/0.1227, allocations: 29.7 kB / 355.4 MB, free: 15.55 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.169e-05/0.1227, allocations: 92.44 kB / 355.5 MB, free: 15.46 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.688e-05/0.1228, allocations: 7.906 kB / 355.5 MB, free: 15.45 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.371e-05/0.1228, allocations: 17.72 kB / 355.5 MB, free: 15.43 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.1229, allocations: 326.8 kB / 355.8 MB, free: 15.1 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.075e-05/0.123, allocations: 8 kB / 355.8 MB, free: 15.09 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.979e-05/0.123, allocations: 39.36 kB / 355.9 MB, free: 15.04 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.608e-05/0.1231, allocations: 47.42 kB / 355.9 MB, free: 14.98 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.1231, allocations: 0 / 355.9 MB, free: 14.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001423/0.1233, allocations: 73.55 kB / 356 MB, free: 14.91 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.472e-05/0.1233, allocations: 4 kB / 356 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.1233, allocations: 8.062 kB / 356 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.274e-05/0.1233, allocations: 4 kB / 356 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.162e-05/0.1234, allocations: 4 kB / 356 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.136e-06/0.1234, allocations: 4 kB / 356 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.233e-05/0.1235, allocations: 7.891 kB / 356 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.486e-06/0.1235, allocations: 4 kB / 356 MB, free: 14.87 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.661e-05/0.1236, allocations: 125.7 kB / 356.1 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.219e-05/0.1237, allocations: 53.59 kB / 356.2 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.28e-05/0.1237, allocations: 15.94 kB / 356.2 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.1237, allocations: 0 / 356.2 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.1237, allocations: 0 / 356.2 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.1237, allocations: 0 / 356.2 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001706/0.1239, allocations: 177.6 kB / 356.4 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.1239, allocations: 0 / 356.4 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.878e-05/0.124, allocations: 11.94 kB / 356.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.124, allocations: 0 / 356.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.947e-06/0.124, allocations: 4 kB / 356.4 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.124, allocations: 0 / 356.4 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.124, allocations: 7.984 kB / 356.4 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001847/0.1242, allocations: 181.2 kB / 356.6 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.377e-05/0.1243, allocations: 97.03 kB / 356.7 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.462e-05/0.1243, allocations: 0 / 356.7 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.957e-05/0.1244, allocations: 11.94 kB / 356.7 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.716e-05/0.1244, allocations: 4 kB / 356.7 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.627e-06/0.1244, allocations: 0 / 356.7 MB, free: 14.09 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.688e-05/0.1245, allocations: 115.2 kB / 356.8 MB, free: 13.97 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1245, allocations: 0 / 356.8 MB, free: 13.97 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000221/0.1247, allocations: 4 kB / 356.8 MB, free: 13.97 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 (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.0001013/0.1248, allocations: 99.25 kB / 356.9 MB, free: 13.86 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001463/0.125, allocations: 40.09 kB / 356.9 MB, free: 13.82 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.125, allocations: 0 / 356.9 MB, free: 13.82 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.46e-05/0.125, allocations: 8 kB / 357 MB, free: 13.82 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003455/0.1254, allocations: 27.95 kB / 357 MB, free: 13.79 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003582/0.1258, allocations: 188.5 kB / 357.2 MB, free: 13.57 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002662/0.126, allocations: 0.7005 MB / 357.9 MB, free: 12.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.809e-05/0.1261, allocations: 0 / 357.9 MB, free: 12.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.738e-05/0.1261, allocations: 15.38 kB / 357.9 MB, free: 12.82 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1261, allocations: 0 / 357.9 MB, free: 12.82 MB / 302.1 MB Notification: Performance of Templates: time 0.00286/0.129, allocations: 0.6377 MB / 358.5 MB, free: 12.2 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches