Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.ConversionBlocks.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(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_3.2.3_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_3.2.3_ModelicaTest.Blocks.ConversionBlocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008094/0.0008094, allocations: 96.94 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009039/0.0009039, allocations: 183.8 kB / 16.92 MB, free: 6.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.053/2.053, allocations: 205.4 MB / 223.1 MB, free: 5.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5329/0.5329, allocations: 43.57 MB / 315 MB, free: 8.809 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006509/0.0006509, allocations: 12 kB / 384.6 MB, free: 7.652 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1825/0.1832, allocations: 58.86 MB / 443.4 MB, free: 12.69 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ConversionBlocks): time 0.002892/0.1862, allocations: 1.787 MB / 445.2 MB, free: 10.88 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002383/0.1886, allocations: 1.306 MB / 446.5 MB, free: 9.566 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.855e-05/0.1887, allocations: 4 kB / 446.5 MB, free: 9.562 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 4.618e-05/0.1888, allocations: 23.73 kB / 446.6 MB, free: 9.539 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000145/0.1889, allocations: 19.84 kB / 446.6 MB, free: 9.52 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004754/0.1894, allocations: 151.5 kB / 446.7 MB, free: 9.371 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002097/0.1896, allocations: 172.1 kB / 446.9 MB, free: 9.203 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002933/0.1899, allocations: 95.58 kB / 447 MB, free: 9.113 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001565/0.1901, allocations: 51.72 kB / 447 MB, free: 9.062 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000118/0.1902, allocations: 71.56 kB / 447.1 MB, free: 8.992 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.261e-05/0.1902, allocations: 4 kB / 447.1 MB, free: 8.988 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002807/0.1905, allocations: 139.9 kB / 447.2 MB, free: 8.852 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.486e-05/0.1906, allocations: 27.86 kB / 447.3 MB, free: 8.824 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001028/0.1907, allocations: 105.2 kB / 447.4 MB, free: 8.715 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003855/0.1911, allocations: 291.2 kB / 447.7 MB, free: 8.43 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.1911, allocations: 0 / 447.7 MB, free: 8.43 MB / 382.1 MB Notification: Performance of FrontEnd: time 5.38e-06/0.1911, allocations: 0 / 447.7 MB, free: 8.43 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.183e-05/0.1911, allocations: 3.938 kB / 447.7 MB, free: 8.426 MB / 382.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.0006701/0.1918, allocations: 491.3 kB / 448.1 MB, free: 7.898 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.342e-05/0.1918, allocations: 12.03 kB / 448.2 MB, free: 7.887 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008126/0.1927, allocations: 68.7 kB / 448.2 MB, free: 7.82 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001604/0.1928, allocations: 180.1 kB / 448.4 MB, free: 7.605 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.178e-05/0.1929, allocations: 20.94 kB / 448.4 MB, free: 7.586 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.682e-05/0.1929, allocations: 24.38 kB / 448.4 MB, free: 7.562 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003877/0.1933, allocations: 221 kB / 448.7 MB, free: 7.344 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.297e-05/0.1933, allocations: 0 / 448.7 MB, free: 7.344 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.498e-05/0.1934, allocations: 12 kB / 448.7 MB, free: 7.332 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.628e-06/0.1934, allocations: 4 kB / 448.7 MB, free: 7.328 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002751/0.1937, allocations: 154.2 kB / 448.8 MB, free: 7.176 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009022/0.1946, allocations: 0.5966 MB / 449.4 MB, free: 6.527 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005313/0.1951, allocations: 239.3 kB / 449.7 MB, free: 6.285 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001294/0.1953, allocations: 69.3 kB / 449.7 MB, free: 6.215 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.843e-05/0.1953, allocations: 4.172 kB / 449.7 MB, free: 6.211 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.064e-05/0.1953, allocations: 42.73 kB / 449.8 MB, free: 6.16 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 1.302e-06/0.1954, allocations: 0 / 449.8 MB, free: 6.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=27): time 0.000486/0.1958, allocations: 218.5 kB / 450 MB, free: 5.941 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.248e-05/0.1959, allocations: 59.39 kB / 450 MB, free: 5.871 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.11e-05/0.196, allocations: 97.86 kB / 450.1 MB, free: 5.766 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.708e-05/0.196, allocations: 33.7 kB / 450.2 MB, free: 5.727 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.294e-05/0.1961, allocations: 132.5 kB / 450.3 MB, free: 5.594 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.929e-05/0.1962, allocations: 86.73 kB / 450.4 MB, free: 5.508 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.064e-05/0.1962, allocations: 25.7 kB / 450.4 MB, free: 5.477 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.1964, allocations: 326.8 kB / 450.7 MB, free: 5.148 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.339e-05/0.1965, allocations: 39.98 kB / 450.8 MB, free: 5.109 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.834e-05/0.1966, allocations: 48.91 kB / 450.8 MB, free: 5.062 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002106/0.1968, allocations: 125.2 kB / 450.9 MB, free: 4.938 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.1968, allocations: 0 / 450.9 MB, free: 4.938 MB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0002613/0.1971, allocations: 185.4 kB / 451.1 MB, free: 4.75 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/0.1971, allocations: 4 kB / 451.1 MB, free: 4.746 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.1971, allocations: 0 / 451.1 MB, free: 4.746 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.795e-05/0.1971, allocations: 4 kB / 451.1 MB, free: 4.742 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003384/0.1975, allocations: 95.89 kB / 451.2 MB, free: 4.648 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.051e-06/0.1975, allocations: 0 / 451.2 MB, free: 4.648 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.545e-05/0.1976, allocations: 23.83 kB / 451.2 MB, free: 4.625 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.34e-05/0.1976, allocations: 8 kB / 451.3 MB, free: 4.617 MB / 382.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.0001136/0.1977, allocations: 125.8 kB / 451.4 MB, free: 4.484 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.451e-05/0.1978, allocations: 15.84 kB / 451.4 MB, free: 4.469 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.243e-05/0.1978, allocations: 25.12 kB / 451.4 MB, free: 4.441 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-06/0.1979, allocations: 4 kB / 451.4 MB, free: 4.438 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.1979, allocations: 3.938 kB / 451.4 MB, free: 4.434 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.1979, allocations: 3.984 kB / 451.4 MB, free: 4.43 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002754/0.1982, allocations: 261.4 kB / 451.7 MB, free: 4.125 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.1982, allocations: 3.938 kB / 451.7 MB, free: 4.121 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003346/0.1985, allocations: 99.94 kB / 451.8 MB, free: 4.023 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.1985, allocations: 7.938 kB / 451.8 MB, free: 4.016 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.257e-05/0.1985, allocations: 4.25 kB / 451.8 MB, free: 4.012 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.1986, allocations: 3.938 kB / 451.8 MB, free: 4.008 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/0.1986, allocations: 8 kB / 451.8 MB, free: 4 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003279/0.1989, allocations: 275.6 kB / 452.1 MB, free: 3.715 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.853e-05/0.199, allocations: 96.8 kB / 452.2 MB, free: 3.602 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.136e-05/0.199, allocations: 4 kB / 452.2 MB, free: 3.598 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.49e-05/0.1991, allocations: 8 kB / 452.2 MB, free: 3.59 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.952e-05/0.1991, allocations: 19.95 kB / 452.2 MB, free: 3.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.335e-05/0.1992, allocations: 12 kB / 452.2 MB, free: 3.559 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.203e-05/0.1992, allocations: 79.28 kB / 452.3 MB, free: 3.48 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1992, allocations: 0 / 452.3 MB, free: 3.48 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002598/0.1995, allocations: 51.78 kB / 452.3 MB, free: 3.43 MB / 382.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.0001365/0.1996, allocations: 111.1 kB / 452.5 MB, free: 3.309 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002896/0.1999, allocations: 131.9 kB / 452.6 MB, free: 3.18 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1999, allocations: 4 kB / 452.6 MB, free: 3.176 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001277/0.2001, allocations: 79.91 kB / 452.7 MB, free: 3.098 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002422/0.2003, allocations: 11.94 kB / 452.7 MB, free: 3.086 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008345/0.2012, allocations: 0.6186 MB / 453.3 MB, free: 2.441 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003342/0.2015, allocations: 0.7322 MB / 454 MB, free: 1.684 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001078/0.2016, allocations: 13.42 kB / 454 MB, free: 1.672 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.956e-05/0.2017, allocations: 27.38 kB / 454.1 MB, free: 1.645 MB / 382.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2017, allocations: 0 / 454.1 MB, free: 1.645 MB / 382.1 MB Notification: Performance of Templates: time 0.003714/0.2054, allocations: 0.8361 MB / 454.9 MB, free: 0.8086 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.ConversionBlocks.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.ConversionBlocks.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.ConversionBlocks.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.ConversionBlocks.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ConversionBlocks.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.ConversionBlocks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.ConversionBlocks.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.ConversionBlocks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/ConversionBlocks/ConversionBlocks.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ConversionBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches