Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.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.UnitDeduction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Asec.y|PI.x|PID.D.x|PID.I.y|PID1.D.x|PID1.I.y|Vsec.y|Wsec.y|derivative.x|firstOrder.y|inertia.phi|inertia.w|integrator.y|limIntegrator.y|secondOrder.y|secondOrder.yd",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction") translateModel(ModelicaTest.Blocks.UnitDeduction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Asec.y|PI.x|PID.D.x|PID.I.y|PID1.D.x|PID1.I.y|Vsec.y|Wsec.y|derivative.x|firstOrder.y|inertia.phi|inertia.w|integrator.y|limIntegrator.y|secondOrder.y|secondOrder.yd",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001165/0.001165, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001188/0.001188, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.205/0.205, allocations: 46.11 MB / 344.1 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001401/0.001401, allocations: 76.69 kB / 417.6 MB, free: 19.78 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1047, allocations: 62.45 MB / 480 MB, free: 5.309 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.005344/0.1101, allocations: 4.024 MB / 484 MB, free: 1.258 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002286/0.1124, allocations: 1.266 MB / 485.3 MB, free: 15.98 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003465/0.1128, allocations: 27.88 kB / 485.3 MB, free: 15.96 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002867/0.1131, allocations: 118.6 kB / 485.4 MB, free: 15.84 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004926/0.1136, allocations: 162.5 kB / 485.6 MB, free: 15.68 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007586/0.1144, allocations: 402.7 kB / 486 MB, free: 15.29 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007477/0.1151, allocations: 0.8346 MB / 486.8 MB, free: 14.46 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004114/0.1156, allocations: 289 kB / 487.1 MB, free: 14.16 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003935/0.116, allocations: 322.6 kB / 487.4 MB, free: 13.84 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000303/0.1163, allocations: 322.2 kB / 487.7 MB, free: 13.53 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.994e-05/0.1164, allocations: 64 kB / 487.8 MB, free: 13.46 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000126/0.1165, allocations: 72 kB / 487.9 MB, free: 13.39 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001159/0.1166, allocations: 163.3 kB / 488 MB, free: 13.23 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002786/0.1169, allocations: 349.9 kB / 488.4 MB, free: 12.89 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006639/0.1176, allocations: 0.7629 MB / 489.1 MB, free: 12.12 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1176, allocations: 0 / 489.1 MB, free: 12.12 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.1176, allocations: 3.938 kB / 489.1 MB, free: 12.12 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.726e-06/0.1176, allocations: 0 / 489.1 MB, free: 12.12 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: 132 * Number of variables: 132 Notification: Performance of Generate backend data structure: time 0.001618/0.1192, allocations: 1.055 MB / 490.2 MB, free: 11.02 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.507e-05/0.1193, allocations: 13.11 kB / 490.2 MB, free: 11 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002368/0.1195, allocations: 99.89 kB / 490.3 MB, free: 10.91 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006398/0.1202, allocations: 0.5109 MB / 490.8 MB, free: 10.36 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.125e-05/0.1202, allocations: 49.67 kB / 490.9 MB, free: 10.3 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.385e-05/0.1203, allocations: 64.12 kB / 490.9 MB, free: 10.24 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009999/0.1213, allocations: 0.6123 MB / 491.5 MB, free: 9.57 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.998e-05/0.1214, allocations: 0 / 491.5 MB, free: 9.57 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.067e-05/0.1214, allocations: 27.98 kB / 491.6 MB, free: 9.543 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.347e-05/0.1214, allocations: 12 kB / 491.6 MB, free: 9.531 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007899/0.1222, allocations: 386.2 kB / 492 MB, free: 9.152 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003791/0.126, allocations: 2.997 MB / 495 MB, free: 6.016 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009477/0.127, allocations: 448.1 kB / 495.4 MB, free: 5.559 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003465/0.1274, allocations: 169.6 kB / 495.6 MB, free: 5.387 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.81e-05/0.1274, allocations: 4 kB / 495.6 MB, free: 5.383 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.916e-05/0.1275, allocations: 42.56 kB / 495.6 MB, free: 5.332 MB / 366.1 MB Notification: Performance of pre-optimization done (n=39): time 3.136e-06/0.1275, allocations: 3.938 kB / 495.6 MB, free: 5.328 MB / 366.1 MB Notification: Performance of matching and sorting (n=39): time 0.001284/0.1288, allocations: 0.5441 MB / 496.2 MB, free: 4.777 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.341e-05/0.1289, allocations: 136.5 kB / 496.3 MB, free: 4.613 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005749/0.1294, allocations: 0.5509 MB / 496.8 MB, free: 4.051 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.551e-05/0.1295, allocations: 29.7 kB / 496.9 MB, free: 4.016 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002421/0.1297, allocations: 380 kB / 497.2 MB, free: 3.641 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001119/0.1299, allocations: 149.8 kB / 497.4 MB, free: 3.492 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001611/0.13, allocations: 122.2 kB / 497.5 MB, free: 3.367 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.1302, allocations: 378.8 kB / 497.9 MB, free: 2.988 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003896/0.1306, allocations: 179.4 kB / 498.1 MB, free: 2.812 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005642/0.1312, allocations: 405.9 kB / 498.4 MB, free: 2.316 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000929/0.1321, allocations: 0.5634 MB / 499 MB, free: 1.66 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-05/0.1321, allocations: 4 kB / 499 MB, free: 1.656 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001204/0.1333, allocations: 0.6487 MB / 499.7 MB, free: 1 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.17e-05/0.1334, allocations: 8 kB / 499.7 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.154e-05/0.1334, allocations: 8.688 kB / 499.7 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.477e-05/0.1334, allocations: 11.94 kB / 499.7 MB, free: 0.9727 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005258/0.134, allocations: 147.7 kB / 499.8 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.735e-05/0.134, allocations: 12.06 kB / 499.8 MB, free: 0.8164 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004024/0.1344, allocations: 75.27 kB / 499.9 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.068e-05/0.1344, allocations: 32 kB / 500 MB, free: 0.7109 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004792/0.1349, allocations: 317.2 kB / 0.4885 GB, free: 408 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004721/0.1354, allocations: 378.3 kB / 0.4889 GB, free: 15.93 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007968/0.1362, allocations: 0.5598 MB / 0.4894 GB, free: 15.27 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.705e-06/0.1362, allocations: 4 kB / 0.4894 GB, free: 15.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization_lambda0): time 0.001106/0.1373, allocations: 0.6324 MB / 0.4901 GB, free: 14.63 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.1374, allocations: 10.19 kB / 0.4901 GB, free: 14.62 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.348e-06/0.1374, allocations: 8.688 kB / 0.4901 GB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.014e-05/0.1374, allocations: 8 kB / 0.4901 GB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004947/0.1379, allocations: 139.8 kB / 0.4902 GB, free: 14.47 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.565e-05/0.1379, allocations: 19.94 kB / 0.4902 GB, free: 14.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003777/0.1383, allocations: 55.52 kB / 0.4903 GB, free: 14.39 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.927e-05/0.1384, allocations: 32 kB / 0.4903 GB, free: 14.36 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 7 (Asec.local_reset,Vsec.local_reset,Wsec.local_reset,PID1.I.local_reset,PID.I.local_reset,limIntegrator.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 78 * 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.0002352/0.1386, allocations: 220.5 kB / 0.4905 GB, free: 14.14 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001153/0.1387, allocations: 67.23 kB / 0.4906 GB, free: 14.07 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001426/0.1389, allocations: 74.17 kB / 0.4907 GB, free: 14 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.1389, allocations: 11.88 kB / 0.4907 GB, free: 13.98 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.1389, allocations: 0 / 0.4907 GB, free: 13.98 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.543e-06/0.1389, allocations: 4 kB / 0.4907 GB, free: 13.98 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007584/0.1397, allocations: 0.5634 MB / 0.4912 GB, free: 13.37 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.1397, allocations: 4 kB / 0.4912 GB, free: 13.36 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004823/0.1402, allocations: 87.88 kB / 0.4913 GB, free: 13.28 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.1402, allocations: 0 / 0.4913 GB, free: 13.28 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.881e-05/0.1402, allocations: 8 kB / 0.4913 GB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.589e-06/0.1403, allocations: 11.94 kB / 0.4913 GB, free: 13.26 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.1403, allocations: 0 / 0.4913 GB, free: 13.26 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001247/0.1415, allocations: 0.7736 MB / 0.4921 GB, free: 12.47 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000181/0.1417, allocations: 172.3 kB / 0.4923 GB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.014e-05/0.1418, allocations: 8 kB / 0.4923 GB, free: 12.28 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003379/0.1421, allocations: 31.91 kB / 0.4923 GB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.1e-05/0.1422, allocations: 27.97 kB / 0.4923 GB, free: 12.22 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.701e-05/0.1422, allocations: 15.98 kB / 0.4923 GB, free: 12.2 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003884/0.1426, allocations: 375.1 kB / 0.4927 GB, free: 11.84 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1426, allocations: 0 / 0.4927 GB, free: 11.84 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007573/0.1434, allocations: 239.2 kB / 0.4929 GB, free: 11.61 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 16 (Wsec.y,Vsec.y,Asec.y,integrator.y,inertia.phi,inertia.w,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,PI.x,PID.I.y,PID.D.x,PID1.I.y,PID1.D.x) * 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 (39): * Single equations (assignments): 39 * 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.0001293/0.1435, allocations: 115.4 kB / 0.493 GB, free: 11.49 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001538/0.1451, allocations: 0.7402 MB / 0.4938 GB, free: 10.75 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.1451, allocations: 0 / 0.4938 GB, free: 10.75 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000374/0.1455, allocations: 200.1 kB / 0.494 GB, free: 10.55 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001002/0.1465, allocations: 190 kB / 0.4941 GB, free: 10.38 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002243/0.1488, allocations: 1.411 MB / 0.4955 GB, free: 8.934 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00042/0.1492, allocations: 0.9104 MB / 0.4964 GB, free: 7.996 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003094/0.1495, allocations: 76.84 kB / 0.4965 GB, free: 7.922 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001138/0.1496, allocations: 39.44 kB / 0.4965 GB, free: 7.883 MB / 382.1 MB Notification: Performance of SimCode: time 6.21e-07/0.1496, allocations: 0 / 0.4965 GB, free: 7.883 MB / 382.1 MB Notification: Performance of Templates: time 0.01086/0.1605, allocations: 6.362 MB / 0.5027 GB, free: 1.582 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/UnitDeduction/UnitDeduction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches