Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.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.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001311/0.001311, allocations: 117.7 kB / 17.7 MB, free: 5.305 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.001219/0.001219, allocations: 191 kB / 18.63 MB, free: 4.379 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.43/1.43, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001084/0.001085, allocations: 42.97 kB / 302.1 MB, free: 5.184 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1369/0.138, allocations: 49.45 MB / 351.5 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample): time 0.003585/0.1416, allocations: 1.605 MB / 353.1 MB, free: 2.086 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001023/0.1427, allocations: 0.5181 MB / 353.6 MB, free: 1.562 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001034/0.1428, allocations: 0 / 353.6 MB, free: 1.562 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.706e-05/0.1429, allocations: 7.875 kB / 353.6 MB, free: 1.555 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001705/0.1431, allocations: 15.88 kB / 353.7 MB, free: 1.539 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003044/0.1434, allocations: 55.81 kB / 353.7 MB, free: 1.484 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001328/0.1435, allocations: 59.77 kB / 353.8 MB, free: 1.426 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001238/0.1437, allocations: 19.98 kB / 353.8 MB, free: 1.406 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.945e-05/0.1438, allocations: 31.86 kB / 353.8 MB, free: 1.375 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.538e-05/0.1438, allocations: 23.86 kB / 353.8 MB, free: 1.352 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.345e-05/0.1439, allocations: 8 kB / 353.9 MB, free: 1.344 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.504e-05/0.1439, allocations: 4 kB / 353.9 MB, free: 1.34 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.723e-05/0.144, allocations: 19.91 kB / 353.9 MB, free: 1.32 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.487e-05/0.144, allocations: 31.75 kB / 353.9 MB, free: 1.289 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001356/0.1442, allocations: 67.72 kB / 354 MB, free: 1.223 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.1442, allocations: 0 / 354 MB, free: 1.223 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1442, allocations: 0 / 354 MB, free: 1.223 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.744e-06/0.1442, allocations: 0 / 354 MB, free: 1.223 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005702/0.1448, allocations: 387 kB / 354.3 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.911e-05/0.1448, allocations: 19.89 kB / 354.4 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.536e-05/0.1449, allocations: 16.73 kB / 354.4 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003595/0.1453, allocations: 204 kB / 354.6 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.349e-05/0.1453, allocations: 4.375 kB / 354.6 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.476e-05/0.1453, allocations: 4.359 kB / 354.6 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003469/0.1456, allocations: 147 kB / 354.7 MB, free: 356 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.717e-06/0.1457, allocations: 0 / 354.7 MB, free: 356 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.577e-06/0.1457, allocations: 7.938 kB / 354.7 MB, free: 348 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.1457, allocations: 0 / 354.7 MB, free: 348 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.927e-05/0.1458, allocations: 31.91 kB / 354.8 MB, free: 316 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004155/0.1462, allocations: 287.5 kB / 355.1 MB, free: 15.97 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001531/0.1464, allocations: 94.42 kB / 355.1 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001133/0.1465, allocations: 51.38 kB / 355.2 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.621e-05/0.1465, allocations: 7.984 kB / 355.2 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.842e-05/0.1466, allocations: 30.56 kB / 355.2 MB, free: 15.73 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 2.114e-06/0.1466, allocations: 4 kB / 355.2 MB, free: 15.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003832/0.147, allocations: 97.45 kB / 355.3 MB, free: 15.62 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.386e-05/0.1471, allocations: 140.5 kB / 355.5 MB, free: 15.46 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001544/0.1473, allocations: 144.1 kB / 355.6 MB, free: 15.3 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.445e-05/0.1473, allocations: 34.19 kB / 355.6 MB, free: 15.27 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.193e-05/0.1474, allocations: 92.14 kB / 355.7 MB, free: 15.17 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.219e-05/0.1474, allocations: 7.906 kB / 355.7 MB, free: 15.16 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.065e-05/0.1475, allocations: 21.7 kB / 355.8 MB, free: 15.14 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001913/0.1477, allocations: 318.8 kB / 356.1 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.493e-05/0.1477, allocations: 15.92 kB / 356.1 MB, free: 14.8 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.854e-05/0.1478, allocations: 57.14 kB / 356.1 MB, free: 14.73 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001227/0.1479, allocations: 61.08 kB / 356.2 MB, free: 14.65 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.148, allocations: 4 kB / 356.2 MB, free: 14.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001909/0.1481, allocations: 85.45 kB / 356.3 MB, free: 14.55 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.1482, allocations: 4 kB / 356.3 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.1482, allocations: 0 / 356.3 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.789e-05/0.1482, allocations: 4 kB / 356.3 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001274/0.1483, allocations: 8 kB / 356.3 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.338e-05/0.1484, allocations: 11.92 kB / 356.3 MB, free: 14.53 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.107e-05/0.1485, allocations: 8.188 kB / 356.3 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.813e-05/0.1485, allocations: 8 kB / 356.3 MB, free: 14.51 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (6): * Single equations (assignments): 6 * 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.0001272/0.1486, allocations: 117.8 kB / 356.5 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.943e-05/0.1487, allocations: 65.53 kB / 356.5 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.251e-05/0.1488, allocations: 15.86 kB / 356.5 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.93e-06/0.1488, allocations: 4 kB / 356.5 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.1488, allocations: 0 / 356.5 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.1488, allocations: 96 / 356.5 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002054/0.149, allocations: 189.4 kB / 356.7 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.149, allocations: 4 kB / 356.7 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.603e-05/0.1491, allocations: 8 kB / 356.7 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.279e-06/0.1491, allocations: 4 kB / 356.7 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.366e-05/0.1491, allocations: 3.984 kB / 356.7 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.1491, allocations: 7.875 kB / 356.7 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.1492, allocations: 4 kB / 356.8 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002011/0.1494, allocations: 201.9 kB / 357 MB, free: 13.8 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.449e-05/0.1494, allocations: 93 kB / 357 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.215e-05/0.1495, allocations: 4 kB / 357 MB, free: 13.69 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.039e-05/0.1495, allocations: 192 / 357 MB, free: 13.69 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.76e-05/0.1496, allocations: 15.97 kB / 357.1 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.314e-06/0.1496, allocations: 4 kB / 357.1 MB, free: 13.67 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.47e-05/0.1497, allocations: 122.8 kB / 357.2 MB, free: 13.55 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1497, allocations: 0 / 357.2 MB, free: 13.55 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002442/0.1499, allocations: 8 kB / 357.2 MB, free: 13.55 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (6): * Single equations (assignments): 6 * 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.000156/0.1501, allocations: 103.2 kB / 357.3 MB, free: 13.44 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001918/0.1503, allocations: 43.92 kB / 357.3 MB, free: 13.39 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1503, allocations: 384 / 357.3 MB, free: 13.39 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.554e-05/0.1503, allocations: 11.98 kB / 357.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004054/0.1508, allocations: 39.91 kB / 357.4 MB, free: 13.34 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004704/0.1512, allocations: 201.5 kB / 357.6 MB, free: 13.11 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003042/0.1516, allocations: 0.7044 MB / 358.3 MB, free: 12.38 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.34e-05/0.1516, allocations: 8.656 kB / 358.3 MB, free: 12.37 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.51e-05/0.1516, allocations: 7.438 kB / 358.3 MB, free: 12.36 MB / 302.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1517, allocations: 4 kB / 358.3 MB, free: 12.36 MB / 302.1 MB Notification: Performance of Templates: time 0.003263/0.1549, allocations: 0.8242 MB / 359.1 MB, free: 11.55 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches