Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.ConversionBlocks.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Blocks.ConversionBlocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ydegC|ydegF|ydegRk|ydeg|yrpm|ykmh|yday|yhour|yminute|ylitre|ykWh|ybar|ygps",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.ConversionBlocks") translateModel(ModelicaTest.Blocks.ConversionBlocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ydegC|ydegF|ydegRk|ydeg|yrpm|ykmh|yday|yhour|yminute|ylitre|ykWh|ybar|ygps",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.ConversionBlocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001629/0.001629, allocations: 107.4 kB / 17.98 MB, free: 5.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002105/0.002105, allocations: 209.8 kB / 18.92 MB, free: 4.426 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.1/2.1, allocations: 227.4 MB / 247.1 MB, free: 8.977 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3888/0.3888, allocations: 46.1 MB / 344.4 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002969/0.002969, allocations: 77.38 kB / 417.7 MB, free: 20.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1722/0.1753, allocations: 62.45 MB / 480.2 MB, free: 5.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ConversionBlocks): time 0.005596/0.1809, allocations: 2.169 MB / 482.3 MB, free: 3.406 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003807/0.1848, allocations: 1.359 MB / 483.7 MB, free: 2.039 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001684/0.185, allocations: 4 kB / 483.7 MB, free: 2.035 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001062/0.1851, allocations: 11.86 kB / 483.7 MB, free: 2.023 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002051/0.1854, allocations: 19.78 kB / 483.7 MB, free: 2.004 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009258/0.1863, allocations: 175.6 kB / 483.9 MB, free: 1.832 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003542/0.1867, allocations: 180.1 kB / 484.1 MB, free: 1.656 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003113/0.187, allocations: 95.59 kB / 484.2 MB, free: 1.562 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002483/0.1873, allocations: 87.58 kB / 484.2 MB, free: 1.477 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001464/0.1875, allocations: 91.53 kB / 484.3 MB, free: 1.387 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.597e-05/0.1875, allocations: 16 kB / 484.3 MB, free: 1.371 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004552/0.188, allocations: 155.9 kB / 484.5 MB, free: 1.219 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.139e-05/0.1881, allocations: 43.8 kB / 484.5 MB, free: 1.176 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001222/0.1882, allocations: 95.45 kB / 484.6 MB, free: 1.082 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004527/0.1887, allocations: 227.6 kB / 484.9 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.1887, allocations: 0 / 484.9 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1887, allocations: 4 kB / 484.9 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.186e-06/0.1887, allocations: 0 / 484.9 MB, free: 0.8555 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.0008575/0.1896, allocations: 0.515 MB / 485.4 MB, free: 300 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.016e-05/0.1896, allocations: 12.03 kB / 485.4 MB, free: 288 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001571/0.1912, allocations: 76.59 kB / 485.5 MB, free: 212 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003066/0.1916, allocations: 216 kB / 485.7 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.609e-05/0.1916, allocations: 20.94 kB / 485.7 MB, free: 15.94 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.238e-05/0.1917, allocations: 28.38 kB / 485.7 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005564/0.1922, allocations: 201.2 kB / 485.9 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.561e-05/0.1923, allocations: 0 / 485.9 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.266e-05/0.1923, allocations: 12 kB / 485.9 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.708e-06/0.1923, allocations: 4 kB / 485.9 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000453/0.1928, allocations: 154.1 kB / 486.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001307/0.1941, allocations: 0.5966 MB / 486.7 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008446/0.195, allocations: 233.2 kB / 486.9 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000212/0.1952, allocations: 69.3 kB / 487 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.853e-05/0.1953, allocations: 8.172 kB / 487 MB, free: 14.58 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.503e-05/0.1953, allocations: 34.8 kB / 487 MB, free: 14.54 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 3.296e-06/0.1953, allocations: 0 / 487 MB, free: 14.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=27): time 0.0007278/0.1961, allocations: 221.4 kB / 487.2 MB, free: 14.32 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.501e-05/0.1961, allocations: 55.41 kB / 487.3 MB, free: 14.25 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001016/0.1963, allocations: 105.8 kB / 487.4 MB, free: 14.14 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.081e-05/0.1963, allocations: 33.7 kB / 487.4 MB, free: 14.1 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.373e-05/0.1964, allocations: 132.5 kB / 487.6 MB, free: 13.97 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.351e-05/0.1965, allocations: 78.75 kB / 487.6 MB, free: 13.89 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001078/0.1966, allocations: 49.7 kB / 487.7 MB, free: 13.84 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.1968, allocations: 322.8 kB / 488 MB, free: 13.51 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001621/0.197, allocations: 39.98 kB / 488 MB, free: 13.47 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001633/0.1972, allocations: 48.89 kB / 488.1 MB, free: 13.43 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003621/0.1975, allocations: 114.2 kB / 488.2 MB, free: 13.31 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.287e-06/0.1976, allocations: 0 / 488.2 MB, free: 13.31 MB / 366.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004587/0.198, allocations: 177.3 kB / 488.4 MB, free: 13.13 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.476e-05/0.1981, allocations: 11.98 kB / 488.4 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.1981, allocations: 0 / 488.4 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.054e-05/0.1981, allocations: 0 / 488.4 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006715/0.1988, allocations: 95.95 kB / 488.5 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.216e-05/0.1988, allocations: 3.938 kB / 488.5 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001273/0.199, allocations: 19.83 kB / 488.5 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.027e-05/0.199, allocations: 8 kB / 488.5 MB, free: 13 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (27): * Single equations (assignments): 27 * 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.0001687/0.1992, allocations: 125.8 kB / 488.6 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.85e-05/0.1993, allocations: 19.78 kB / 488.6 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.884e-05/0.1994, allocations: 29.45 kB / 488.7 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.1994, allocations: 0 / 488.7 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.054e-06/0.1994, allocations: 4 kB / 488.7 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.638e-06/0.1994, allocations: 3.984 kB / 488.7 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004717/0.1999, allocations: 265.4 kB / 488.9 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.44e-06/0.1999, allocations: 3.938 kB / 488.9 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006271/0.2006, allocations: 107.9 kB / 489 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.598e-06/0.2006, allocations: 0 / 489 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.804e-05/0.2006, allocations: 4 kB / 489.1 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.43e-06/0.2006, allocations: 3.984 kB / 489.1 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.2007, allocations: 0 / 489.1 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005182/0.2012, allocations: 287.2 kB / 489.3 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.606e-05/0.2013, allocations: 92.89 kB / 489.4 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.886e-05/0.2013, allocations: 0 / 489.4 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001655/0.2015, allocations: 8 kB / 489.4 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.133e-05/0.2016, allocations: 20.22 kB / 489.5 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.76e-05/0.2016, allocations: 4 kB / 489.5 MB, free: 11.95 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.159e-05/0.2017, allocations: 87.28 kB / 489.5 MB, free: 11.86 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.2017, allocations: 0 / 489.5 MB, free: 11.86 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005033/0.2022, allocations: 55.78 kB / 489.6 MB, free: 11.81 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (27): * Single equations (assignments): 27 * 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.0001506/0.2024, allocations: 99.17 kB / 489.7 MB, free: 11.7 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005299/0.2029, allocations: 140.3 kB / 489.8 MB, free: 11.56 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.2029, allocations: 0 / 489.8 MB, free: 11.56 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002111/0.2032, allocations: 83.83 kB / 489.9 MB, free: 11.48 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00041/0.2036, allocations: 11.94 kB / 489.9 MB, free: 11.47 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001291/0.2049, allocations: 0.5798 MB / 490.5 MB, free: 10.86 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000437/0.2053, allocations: 0.7319 MB / 491.2 MB, free: 10.09 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001008/0.2055, allocations: 19.44 kB / 491.3 MB, free: 10.07 MB / 366.1 MB Notification: Performance of SimCode: time 4e-07/0.2055, allocations: 0 / 491.3 MB, free: 10.07 MB / 366.1 MB Notification: Performance of Templates: time 0.00543/0.2109, allocations: 1.751 MB / 493 MB, free: 8.32 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.ConversionBlocks.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.ConversionBlocks.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.ConversionBlocks.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.ConversionBlocks.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.ConversionBlocks.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.ConversionBlocks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.ConversionBlocks.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.ConversionBlocks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ConversionBlocks/ConversionBlocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.ConversionBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches