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.001252/0.001252, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00137/0.00137, allocations: 203.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2092/0.2092, allocations: 46.09 MB / 344.9 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001386/0.001386, allocations: 75.83 kB / 419 MB, free: 19.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1207, allocations: 62.44 MB / 481.5 MB, free: 4.559 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ConversionBlocks): time 0.003427/0.1241, allocations: 2.11 MB / 483.6 MB, free: 2.438 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002011/0.1262, allocations: 1.383 MB / 484.9 MB, free: 1.047 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.691e-05/0.1263, allocations: 4 kB / 484.9 MB, free: 1.043 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.145e-05/0.1263, allocations: 23.67 kB / 485 MB, free: 1.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001108/0.1265, allocations: 31.72 kB / 485 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004949/0.127, allocations: 195.2 kB / 485.2 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002231/0.1272, allocations: 184 kB / 485.4 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002093/0.1274, allocations: 103.6 kB / 485.5 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001618/0.1276, allocations: 79.64 kB / 485.6 MB, free: 448 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.582e-05/0.1277, allocations: 91.55 kB / 485.6 MB, free: 356 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.254e-05/0.1277, allocations: 12 kB / 485.7 MB, free: 344 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002729/0.128, allocations: 155.9 kB / 485.8 MB, free: 188 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.402e-05/0.128, allocations: 47.78 kB / 485.9 MB, free: 140 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.269e-05/0.1281, allocations: 95.41 kB / 485.9 MB, free: 44 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000388/0.1285, allocations: 322.8 kB / 486.3 MB, free: 15.73 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1285, allocations: 0 / 486.3 MB, free: 15.73 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1285, allocations: 0 / 486.3 MB, free: 15.73 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.191e-06/0.1286, allocations: 0 / 486.3 MB, free: 15.73 MB / 366.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.0005809/0.1291, allocations: 0.5227 MB / 486.8 MB, free: 15.16 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.1292, allocations: 8.031 kB / 486.8 MB, free: 15.15 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008859/0.1301, allocations: 80.59 kB / 486.9 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002615/0.1304, allocations: 212 kB / 487.1 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.211e-05/0.1304, allocations: 24.94 kB / 487.1 MB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.738e-05/0.1304, allocations: 24.38 kB / 487.1 MB, free: 14.78 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003177/0.1307, allocations: 201.2 kB / 487.3 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.1308, allocations: 3.984 kB / 487.3 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.801e-05/0.1308, allocations: 16 kB / 487.3 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.087e-06/0.1308, allocations: 8 kB / 487.3 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002474/0.131, allocations: 146.1 kB / 487.5 MB, free: 14.4 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007566/0.1318, allocations: 0.5888 MB / 488.1 MB, free: 13.76 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004665/0.1323, allocations: 231.3 kB / 488.3 MB, free: 13.53 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001202/0.1324, allocations: 69.3 kB / 488.4 MB, free: 13.46 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.263e-05/0.1325, allocations: 8.172 kB / 488.4 MB, free: 13.45 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.293e-05/0.1325, allocations: 34.8 kB / 488.4 MB, free: 13.41 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 1.533e-06/0.1325, allocations: 0 / 488.4 MB, free: 13.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=27): time 0.0004046/0.1329, allocations: 223.8 kB / 488.6 MB, free: 13.18 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.369e-05/0.133, allocations: 55.41 kB / 488.7 MB, free: 13.12 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.906e-05/0.133, allocations: 105.8 kB / 488.8 MB, free: 13 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.278e-05/0.1331, allocations: 29.7 kB / 488.8 MB, free: 12.97 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.15e-05/0.1331, allocations: 128.5 kB / 488.9 MB, free: 12.84 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.577e-05/0.1332, allocations: 90.75 kB / 489 MB, free: 12.75 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.614e-05/0.1333, allocations: 37.72 kB / 489.1 MB, free: 12.71 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001049/0.1334, allocations: 322.8 kB / 489.4 MB, free: 12.38 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.606e-05/0.1335, allocations: 43.97 kB / 489.4 MB, free: 12.34 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.869e-05/0.1335, allocations: 47.95 kB / 489.5 MB, free: 12.29 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001814/0.1337, allocations: 110.2 kB / 489.6 MB, free: 12.18 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1337, allocations: 0 / 489.6 MB, free: 12.18 MB / 366.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0002501/0.134, allocations: 185.3 kB / 489.8 MB, free: 12 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.134, allocations: 4 kB / 489.8 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.91e-06/0.134, allocations: 0 / 489.8 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.1341, allocations: 0 / 489.8 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003236/0.1344, allocations: 95.94 kB / 489.9 MB, free: 11.9 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.52e-05/0.1344, allocations: 7.938 kB / 489.9 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.319e-05/0.1345, allocations: 19.84 kB / 489.9 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.283e-05/0.1345, allocations: 11.94 kB / 489.9 MB, free: 11.86 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.0001044/0.1346, allocations: 129.8 kB / 490 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.321e-05/0.1346, allocations: 11.84 kB / 490 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.977e-05/0.1347, allocations: 21.53 kB / 490.1 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.409e-06/0.1347, allocations: 4 kB / 490.1 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.191e-06/0.1347, allocations: 0 / 490.1 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.1347, allocations: 0 / 490.1 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002617/0.135, allocations: 273.4 kB / 490.3 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.135, allocations: 7.938 kB / 490.3 MB, free: 11.37 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003249/0.1353, allocations: 99.88 kB / 490.4 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.1353, allocations: 256 / 490.4 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.501e-05/0.1354, allocations: 4 kB / 490.4 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.489e-06/0.1354, allocations: 11.94 kB / 490.5 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.1354, allocations: 0 / 490.5 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002892/0.1357, allocations: 279.2 kB / 490.7 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.569e-05/0.1357, allocations: 92.89 kB / 490.8 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.13e-05/0.1358, allocations: 8 kB / 490.8 MB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.365e-05/0.1358, allocations: 4 kB / 490.8 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.402e-05/0.1359, allocations: 19.97 kB / 490.8 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.458e-06/0.1359, allocations: 4 kB / 490.9 MB, free: 10.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.586e-05/0.136, allocations: 83.28 kB / 490.9 MB, free: 10.74 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.136, allocations: 4 kB / 490.9 MB, free: 10.73 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002758/0.1362, allocations: 47.78 kB / 491 MB, free: 10.69 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.0001095/0.1364, allocations: 99.19 kB / 491.1 MB, free: 10.58 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000262/0.1366, allocations: 132.3 kB / 491.2 MB, free: 10.45 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1366, allocations: 0 / 491.2 MB, free: 10.45 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001166/0.1368, allocations: 84.34 kB / 491.3 MB, free: 10.37 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002205/0.137, allocations: 11.94 kB / 491.3 MB, free: 10.36 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006813/0.1377, allocations: 468 kB / 491.8 MB, free: 9.871 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000287/0.138, allocations: 0.7319 MB / 492.5 MB, free: 9.113 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.512e-05/0.1381, allocations: 21.41 kB / 492.5 MB, free: 9.09 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.218e-05/0.1381, allocations: 15.44 kB / 492.5 MB, free: 9.074 MB / 366.1 MB Notification: Performance of SimCode: time 1.493e-06/0.1381, allocations: 0 / 492.5 MB, free: 9.074 MB / 366.1 MB Notification: Performance of Templates: time 0.003148/0.1413, allocations: 0.9366 MB / 493.5 MB, free: 8.141 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 -s cvode -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