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.001176/0.001177, allocations: 108 kB / 16.92 MB, free: 5.758 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.001279/0.001279, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.48/1.48, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 47.27 kB / 300.6 MB, free: 5.898 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1386/0.1398, allocations: 49.44 MB / 350.1 MB, free: 4.449 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample): time 0.00326/0.1431, allocations: 1.565 MB / 351.6 MB, free: 2.863 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009408/0.1441, allocations: 0.4923 MB / 352.1 MB, free: 2.367 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001063/0.1442, allocations: 0 / 352.1 MB, free: 2.367 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.51e-05/0.1443, allocations: 7.922 kB / 352.1 MB, free: 2.359 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001801/0.1445, allocations: 15.86 kB / 352.1 MB, free: 2.344 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003123/0.1448, allocations: 47.83 kB / 352.2 MB, free: 2.297 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001096/0.1449, allocations: 47.8 kB / 352.2 MB, free: 2.25 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001125/0.1451, allocations: 20.17 kB / 352.3 MB, free: 2.23 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.516e-05/0.1452, allocations: 27.91 kB / 352.3 MB, free: 2.203 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.131e-05/0.1452, allocations: 19.86 kB / 352.3 MB, free: 2.184 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.054e-05/0.1452, allocations: 4 kB / 352.3 MB, free: 2.18 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.657e-05/0.1453, allocations: 4 kB / 352.3 MB, free: 2.176 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.576e-05/0.1453, allocations: 11.94 kB / 352.3 MB, free: 2.164 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.686e-05/0.1454, allocations: 23.8 kB / 352.3 MB, free: 2.141 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001465/0.1455, allocations: 55.81 kB / 352.4 MB, free: 2.086 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.1455, allocations: 7.938 kB / 352.4 MB, free: 2.078 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1456, allocations: 0 / 352.4 MB, free: 2.078 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.077e-05/0.1456, allocations: 0 / 352.4 MB, free: 2.078 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.0005564/0.1461, allocations: 383.3 kB / 352.8 MB, free: 1.656 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.751e-05/0.1462, allocations: 11.89 kB / 352.8 MB, free: 1.645 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.33e-05/0.1462, allocations: 8.844 kB / 352.8 MB, free: 1.637 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002464/0.1465, allocations: 200.1 kB / 353 MB, free: 1.402 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.292e-05/0.1465, allocations: 384 / 353 MB, free: 1.402 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.844e-05/0.1465, allocations: 8.375 kB / 353 MB, free: 1.395 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002961/0.1468, allocations: 118 kB / 353.1 MB, free: 1.258 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.267e-06/0.1469, allocations: 4 kB / 353.1 MB, free: 1.254 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.045e-05/0.1469, allocations: 0 / 353.1 MB, free: 1.254 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.1469, allocations: 0 / 353.1 MB, free: 1.254 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.682e-05/0.147, allocations: 27.92 kB / 353.1 MB, free: 1.227 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000386/0.1474, allocations: 266.6 kB / 353.4 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001172/0.1475, allocations: 75.78 kB / 353.5 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.007e-05/0.1476, allocations: 38.56 kB / 353.5 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.631e-05/0.1476, allocations: 0 / 353.5 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.123e-05/0.1477, allocations: 38.56 kB / 353.6 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 8.42e-07/0.1477, allocations: 3.938 kB / 353.6 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002895/0.148, allocations: 89.44 kB / 353.6 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.596e-05/0.148, allocations: 114.8 kB / 353.8 MB, free: 492 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001462/0.1482, allocations: 144.9 kB / 353.9 MB, free: 340 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.464e-05/0.1482, allocations: 25.7 kB / 353.9 MB, free: 308 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.877e-05/0.1483, allocations: 88.08 kB / 354 MB, free: 216 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.999e-05/0.1483, allocations: 12.27 kB / 354 MB, free: 204 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.216e-05/0.1484, allocations: 21.72 kB / 354 MB, free: 176 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.1485, allocations: 318.8 kB / 354.4 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.406e-05/0.1486, allocations: 7.984 kB / 354.4 MB, free: 15.84 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.073e-05/0.1486, allocations: 35.42 kB / 354.4 MB, free: 15.8 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.219e-05/0.1487, allocations: 51.36 kB / 354.4 MB, free: 15.73 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.185e-06/0.1487, allocations: 0 / 354.4 MB, free: 15.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000135/0.1489, allocations: 65.62 kB / 354.5 MB, free: 15.66 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.1489, allocations: 4 kB / 354.5 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.1489, allocations: 4.125 kB / 354.5 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.1489, allocations: 7.984 kB / 354.5 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.857e-05/0.149, allocations: 11.94 kB / 354.5 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.182e-06/0.1491, allocations: 0 / 354.5 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.236e-05/0.1491, allocations: 7.906 kB / 354.5 MB, free: 15.63 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.047e-06/0.1491, allocations: 0 / 354.5 MB, free: 15.63 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 9.073e-05/0.1492, allocations: 121.8 kB / 354.7 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.29e-05/0.1493, allocations: 57.53 kB / 354.7 MB, free: 15.44 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.76e-05/0.1493, allocations: 15.94 kB / 354.7 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.1494, allocations: 0 / 354.7 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.1494, allocations: 0 / 354.7 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.1494, allocations: 4 kB / 354.7 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001873/0.1496, allocations: 169.6 kB / 354.9 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.1496, allocations: 0 / 354.9 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.92e-05/0.1496, allocations: 11.98 kB / 354.9 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.1497, allocations: 4 kB / 354.9 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.185e-06/0.1497, allocations: 0 / 354.9 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.1497, allocations: 0 / 354.9 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1497, allocations: 0 / 354.9 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002019/0.1499, allocations: 193.1 kB / 355.1 MB, free: 14.97 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.793e-05/0.15, allocations: 93 kB / 355.2 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.66e-05/0.15, allocations: 7.922 kB / 355.2 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.02e-05/0.15, allocations: 4 kB / 355.2 MB, free: 14.85 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.533e-05/0.1501, allocations: 4 kB / 355.2 MB, free: 14.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.32e-06/0.1501, allocations: 4 kB / 355.2 MB, free: 14.84 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.745e-05/0.1502, allocations: 107.2 kB / 355.3 MB, free: 14.74 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1502, allocations: 0 / 355.3 MB, free: 14.74 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00022/0.1504, allocations: 8 kB / 355.3 MB, free: 14.73 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.0001223/0.1505, allocations: 107.1 kB / 355.4 MB, free: 14.62 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001526/0.1507, allocations: 28.11 kB / 355.5 MB, free: 14.59 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.1507, allocations: 8.062 kB / 355.5 MB, free: 14.58 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.235e-05/0.1508, allocations: 7.984 kB / 355.5 MB, free: 14.57 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004436/0.1512, allocations: 42.64 kB / 355.5 MB, free: 14.54 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003767/0.1516, allocations: 184.8 kB / 355.7 MB, free: 14.32 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002839/0.1519, allocations: 0.6924 MB / 356.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.252e-05/0.1519, allocations: 7.984 kB / 356.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.852e-05/0.152, allocations: 7.438 kB / 356.4 MB, free: 13.58 MB / 302.1 MB Notification: Performance of SimCode: time 1.463e-06/0.152, allocations: 0 / 356.4 MB, free: 13.58 MB / 302.1 MB Notification: Performance of Templates: time 0.003002/0.155, allocations: 0.6419 MB / 357.1 MB, free: 12.95 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins/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