Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.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.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001787/0.001787, allocations: 109.2 kB / 17.17 MB, free: 6.32 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.002384/0.002384, allocations: 194.9 kB / 18.08 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.296/2.296, allocations: 222.9 MB / 241.7 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002801/0.002801, allocations: 47.95 kB / 300.6 MB, free: 6.293 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1802/0.183, allocations: 49.45 MB / 350.1 MB, free: 4.836 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.005292/0.1884, allocations: 1.592 MB / 351.7 MB, free: 3.227 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000668/0.1891, allocations: 139.6 kB / 351.8 MB, free: 3.09 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001371/0.1893, allocations: 7.938 kB / 351.8 MB, free: 3.082 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 8.689e-05/0.1894, allocations: 3.984 kB / 351.8 MB, free: 3.078 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001945/0.1897, allocations: 3.938 kB / 351.8 MB, free: 3.074 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003866/0.1901, allocations: 39.95 kB / 351.8 MB, free: 3.035 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001329/0.1902, allocations: 31.86 kB / 351.9 MB, free: 3.004 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001792/0.1904, allocations: 12 kB / 351.9 MB, free: 2.992 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.309e-05/0.1905, allocations: 19.86 kB / 351.9 MB, free: 2.973 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.173e-05/0.1906, allocations: 15.92 kB / 351.9 MB, free: 2.957 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.224e-05/0.1906, allocations: 4 kB / 351.9 MB, free: 2.953 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.655e-05/0.1906, allocations: 0 / 351.9 MB, free: 2.953 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001037/0.1907, allocations: 11.94 kB / 351.9 MB, free: 2.941 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.761e-05/0.1908, allocations: 27.78 kB / 352 MB, free: 2.914 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001225/0.1909, allocations: 23.97 kB / 352 MB, free: 2.891 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.191, allocations: 0 / 352 MB, free: 2.891 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.056e-06/0.191, allocations: 0 / 352 MB, free: 2.891 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.133e-06/0.191, allocations: 0 / 352 MB, free: 2.891 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0007448/0.1918, allocations: 379.5 kB / 352.4 MB, free: 2.469 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.124e-05/0.1918, allocations: 11.97 kB / 352.4 MB, free: 2.457 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.248e-05/0.1919, allocations: 8.844 kB / 352.4 MB, free: 2.449 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003046/0.1922, allocations: 180.2 kB / 352.6 MB, free: 2.234 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.728e-05/0.1923, allocations: 4.375 kB / 352.6 MB, free: 2.23 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.839e-05/0.1923, allocations: 8.312 kB / 352.6 MB, free: 2.223 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004838/0.1928, allocations: 125.5 kB / 352.7 MB, free: 2.082 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/0.1928, allocations: 192 / 352.7 MB, free: 2.082 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.809e-05/0.1928, allocations: 3.938 kB / 352.7 MB, free: 2.078 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.858e-06/0.1929, allocations: 4 kB / 352.7 MB, free: 2.074 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001282/0.193, allocations: 19.92 kB / 352.7 MB, free: 2.055 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000522/0.1935, allocations: 269.8 kB / 353 MB, free: 1.738 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003347/0.1939, allocations: 134.2 kB / 353.1 MB, free: 1.57 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001218/0.194, allocations: 29.77 kB / 353.1 MB, free: 1.535 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.845e-05/0.1941, allocations: 3.938 kB / 353.1 MB, free: 1.531 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.137e-05/0.1942, allocations: 42.56 kB / 353.2 MB, free: 1.48 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 2.415e-06/0.1942, allocations: 0 / 353.2 MB, free: 1.48 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0004627/0.1947, allocations: 73.52 kB / 353.3 MB, free: 1.402 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.871e-05/0.1947, allocations: 85.09 kB / 353.3 MB, free: 1.301 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001921/0.195, allocations: 133.6 kB / 353.5 MB, free: 1.16 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.86e-05/0.195, allocations: 25.7 kB / 353.5 MB, free: 1.129 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.765e-05/0.1951, allocations: 92.27 kB / 353.6 MB, free: 1.035 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.002e-05/0.1951, allocations: 3.938 kB / 353.6 MB, free: 1.031 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.445e-05/0.1952, allocations: 21.62 kB / 353.6 MB, free: 1.004 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000162/0.1954, allocations: 314.8 kB / 353.9 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.982e-05/0.1955, allocations: 12 kB / 353.9 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.728e-05/0.1956, allocations: 31.42 kB / 354 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001293/0.1957, allocations: 47.36 kB / 354 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.1957, allocations: 0 / 354 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002388/0.196, allocations: 73.61 kB / 354.1 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.666e-05/0.196, allocations: 12 kB / 354.1 MB, free: 496 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/0.196, allocations: 0 / 354.1 MB, free: 496 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.237e-05/0.1961, allocations: 0 / 354.1 MB, free: 496 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.904e-05/0.1962, allocations: 8.281 kB / 354.1 MB, free: 488 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.018e-05/0.1962, allocations: 0 / 354.1 MB, free: 488 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.291e-05/0.1963, allocations: 7.984 kB / 354.1 MB, free: 480 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.444e-05/0.1963, allocations: 4 kB / 354.1 MB, free: 476 kB / 286.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 0.0001491/0.1965, allocations: 121.7 kB / 354.2 MB, free: 344 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001314/0.1966, allocations: 61.52 kB / 354.3 MB, free: 276 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.112e-05/0.1967, allocations: 8.25 kB / 354.3 MB, free: 260 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.1967, allocations: 4 kB / 354.3 MB, free: 256 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.1967, allocations: 0 / 354.3 MB, free: 256 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.1968, allocations: 0 / 354.3 MB, free: 256 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002813/0.197, allocations: 165.6 kB / 354.5 MB, free: 40 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.548e-06/0.1971, allocations: 4 kB / 354.5 MB, free: 36 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.247e-05/0.1972, allocations: 7.984 kB / 354.5 MB, free: 28 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.152e-06/0.1972, allocations: 7.938 kB / 354.5 MB, free: 20 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.365e-05/0.1972, allocations: 4 kB / 354.5 MB, free: 16 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.1972, allocations: 0 / 354.5 MB, free: 16 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.1972, allocations: 4 kB / 354.5 MB, free: 12 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003273/0.1976, allocations: 172.2 kB / 354.7 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001006/0.1977, allocations: 89 kB / 354.7 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.664e-05/0.1977, allocations: 4 kB / 354.8 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001137/0.1979, allocations: 4 kB / 354.8 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.683e-05/0.1979, allocations: 4 kB / 354.8 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.053e-06/0.1979, allocations: 0 / 354.8 MB, free: 15.71 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001276/0.1981, allocations: 111.2 kB / 354.9 MB, free: 15.6 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1981, allocations: 0 / 354.9 MB, free: 15.6 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004248/0.1985, allocations: 4 kB / 354.9 MB, free: 15.59 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 (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.0001535/0.1987, allocations: 99.19 kB / 355 MB, free: 15.49 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00024/0.1989, allocations: 31.92 kB / 355 MB, free: 15.46 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.199, allocations: 4.25 kB / 355 MB, free: 15.45 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.514e-05/0.199, allocations: 7.984 kB / 355 MB, free: 15.45 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006023/0.1997, allocations: 35.95 kB / 355 MB, free: 15.41 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000505/0.2002, allocations: 189.8 kB / 355.2 MB, free: 15.19 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003437/0.2005, allocations: 0.6888 MB / 355.9 MB, free: 14.47 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.044e-05/0.2006, allocations: 11.44 kB / 355.9 MB, free: 14.46 MB / 302.1 MB Notification: Performance of SimCode: time 7.01e-07/0.2006, allocations: 3.938 kB / 355.9 MB, free: 14.46 MB / 302.1 MB Notification: Performance of Templates: time 0.003325/0.2039, allocations: 0.6745 MB / 356.6 MB, free: 13.79 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample2/Sample2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches