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.001336/0.001336, allocations: 109.2 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00126/0.00126, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.328/1.328, allocations: 227.4 MB / 246.9 MB, free: 8.902 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2065/0.2065, allocations: 46.11 MB / 344.3 MB, free: 11.55 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001515/0.001515, allocations: 77.09 kB / 417.5 MB, free: 20.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1039, allocations: 62.44 MB / 479.9 MB, free: 5.707 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.005392/0.1093, allocations: 4.042 MB / 484 MB, free: 1.637 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002366/0.1117, allocations: 1.243 MB / 485.2 MB, free: 400 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005413/0.1123, allocations: 27.88 kB / 485.2 MB, free: 372 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003942/0.1127, allocations: 79.22 kB / 485.3 MB, free: 292 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000622/0.1133, allocations: 139 kB / 485.5 MB, free: 152 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008632/0.1142, allocations: 359.4 kB / 485.8 MB, free: 15.8 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009263/0.1152, allocations: 0.7838 MB / 486.6 MB, free: 15.02 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004482/0.1156, allocations: 280.3 kB / 486.9 MB, free: 14.73 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004706/0.1161, allocations: 286.5 kB / 487.1 MB, free: 14.45 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004012/0.1165, allocations: 302.2 kB / 487.4 MB, free: 14.15 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001006/0.1166, allocations: 36 kB / 487.5 MB, free: 14.12 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001239/0.1168, allocations: 43.98 kB / 487.5 MB, free: 14.07 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001088/0.1169, allocations: 127.3 kB / 487.6 MB, free: 13.95 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002677/0.1171, allocations: 325.8 kB / 488 MB, free: 13.63 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000491/0.1176, allocations: 0.5574 MB / 488.5 MB, free: 13.07 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.1177, allocations: 4 kB / 488.5 MB, free: 13.07 MB / 366.1 MB Notification: Performance of FrontEnd: time 8.11e-07/0.1177, allocations: 0 / 488.5 MB, free: 13.07 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.794e-05/0.1177, allocations: 0 / 488.5 MB, free: 13.07 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.001962/0.1197, allocations: 1.055 MB / 489.6 MB, free: 11.96 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.557e-05/0.1197, allocations: 13.95 kB / 489.6 MB, free: 11.95 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002494/0.12, allocations: 99.89 kB / 489.7 MB, free: 11.85 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007114/0.1207, allocations: 0.5109 MB / 490.2 MB, free: 11.3 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.84e-05/0.1207, allocations: 45.69 kB / 490.2 MB, free: 11.25 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.643e-05/0.1208, allocations: 68.11 kB / 490.3 MB, free: 11.19 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009955/0.1218, allocations: 0.6123 MB / 490.9 MB, free: 10.52 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.199e-05/0.1219, allocations: 7.938 kB / 490.9 MB, free: 10.51 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.772e-05/0.1219, allocations: 24 kB / 491 MB, free: 10.48 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.265e-05/0.1219, allocations: 12 kB / 491 MB, free: 10.47 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007646/0.1227, allocations: 386.2 kB / 491.3 MB, free: 10.09 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003953/0.1267, allocations: 3.001 MB / 494.3 MB, free: 6.953 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009268/0.1276, allocations: 443.6 kB / 494.8 MB, free: 6.5 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003463/0.128, allocations: 169.6 kB / 494.9 MB, free: 6.328 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.623e-05/0.128, allocations: 8.031 kB / 494.9 MB, free: 6.32 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.737e-05/0.1281, allocations: 42.56 kB / 495 MB, free: 6.27 MB / 366.1 MB Notification: Performance of pre-optimization done (n=39): time 1.864e-06/0.1281, allocations: 0 / 495 MB, free: 6.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=39): time 0.001247/0.1293, allocations: 0.5564 MB / 495.5 MB, free: 5.707 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.732e-05/0.1294, allocations: 132.5 kB / 495.7 MB, free: 5.547 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006341/0.13, allocations: 0.5548 MB / 496.2 MB, free: 4.98 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.864e-05/0.1301, allocations: 33.64 kB / 496.3 MB, free: 4.941 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00026/0.1304, allocations: 376 kB / 496.6 MB, free: 4.566 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001162/0.1305, allocations: 145.9 kB / 496.8 MB, free: 4.422 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001754/0.1307, allocations: 122.2 kB / 496.9 MB, free: 4.297 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.1308, allocations: 378.8 kB / 497.3 MB, free: 3.918 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000414/0.1313, allocations: 183.4 kB / 497.4 MB, free: 3.738 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005346/0.1318, allocations: 397.9 kB / 497.8 MB, free: 3.25 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000929/0.1327, allocations: 0.5712 MB / 498.4 MB, free: 2.586 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.104e-06/0.1328, allocations: 4 kB / 498.4 MB, free: 2.582 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001239/0.134, allocations: 0.6484 MB / 499.1 MB, free: 1.926 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.134, allocations: 8 kB / 499.1 MB, free: 1.918 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.497e-05/0.134, allocations: 8.688 kB / 499.1 MB, free: 1.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.108e-05/0.1341, allocations: 15.88 kB / 499.1 MB, free: 1.895 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005328/0.1346, allocations: 139.8 kB / 499.2 MB, free: 1.758 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.799e-05/0.1346, allocations: 15.92 kB / 499.2 MB, free: 1.742 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004196/0.1351, allocations: 75.27 kB / 499.3 MB, free: 1.668 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.433e-05/0.1351, allocations: 32 kB / 499.3 MB, free: 1.637 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005324/0.1357, allocations: 301.4 kB / 499.6 MB, free: 1.34 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004906/0.1362, allocations: 397.7 kB / 0.4883 GB, free: 0.8555 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008472/0.137, allocations: 0.5483 MB / 0.4888 GB, free: 220 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.117e-06/0.137, allocations: 4 kB / 0.4888 GB, free: 216 kB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization_lambda0): time 0.001152/0.1382, allocations: 0.6247 MB / 0.4895 GB, free: 15.57 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.1382, allocations: 11.98 kB / 0.4895 GB, free: 15.56 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.1382, allocations: 8 kB / 0.4895 GB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.917e-05/0.1383, allocations: 8.688 kB / 0.4895 GB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004901/0.1388, allocations: 139.8 kB / 0.4896 GB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.825e-05/0.1388, allocations: 19.88 kB / 0.4896 GB, free: 15.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004078/0.1392, allocations: 59.52 kB / 0.4897 GB, free: 15.33 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.559e-05/0.1393, allocations: 28 kB / 0.4897 GB, free: 15.3 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.0001918/0.1395, allocations: 218.4 kB / 0.4899 GB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001294/0.1396, allocations: 63.25 kB / 0.49 GB, free: 15.02 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001506/0.1397, allocations: 78.16 kB / 0.4901 GB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.1398, allocations: 7.938 kB / 0.4901 GB, free: 14.94 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/0.1398, allocations: 0 / 0.4901 GB, free: 14.94 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.1398, allocations: 4 kB / 0.4901 GB, free: 14.93 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008448/0.1406, allocations: 0.575 MB / 0.4906 GB, free: 14.31 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.1406, allocations: 3.938 kB / 0.4906 GB, free: 14.31 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00054/0.1412, allocations: 83.89 kB / 0.4907 GB, free: 14.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.123e-06/0.1412, allocations: 4 kB / 0.4907 GB, free: 14.22 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.537e-05/0.1413, allocations: 7.984 kB / 0.4907 GB, free: 14.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.743e-06/0.1413, allocations: 15.94 kB / 0.4907 GB, free: 14.2 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.1413, allocations: 3.938 kB / 0.4907 GB, free: 14.2 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001254/0.1425, allocations: 0.7689 MB / 0.4915 GB, free: 13.41 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002195/0.1428, allocations: 168.3 kB / 0.4917 GB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.018e-05/0.1429, allocations: 12 kB / 0.4917 GB, free: 13.22 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003528/0.1432, allocations: 27.92 kB / 0.4917 GB, free: 13.19 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.008e-05/0.1433, allocations: 31.95 kB / 0.4917 GB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.347e-05/0.1433, allocations: 15.98 kB / 0.4917 GB, free: 13.14 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004151/0.1438, allocations: 379.1 kB / 0.4921 GB, free: 12.78 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.593e-06/0.1438, allocations: 0 / 0.4921 GB, free: 12.78 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008236/0.1446, allocations: 243.1 kB / 0.4923 GB, free: 12.54 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.0001409/0.1447, allocations: 111.5 kB / 0.4924 GB, free: 12.42 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001421/0.1462, allocations: 0.7208 MB / 0.4931 GB, free: 11.7 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.1462, allocations: 4 kB / 0.4932 GB, free: 11.7 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003728/0.1466, allocations: 193.2 kB / 0.4933 GB, free: 11.51 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009972/0.1476, allocations: 163.3 kB / 0.4935 GB, free: 11.36 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002487/0.1501, allocations: 1.704 MB / 0.4952 GB, free: 9.613 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004586/0.1505, allocations: 0.9107 MB / 0.496 GB, free: 8.676 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001764/0.1507, allocations: 51.42 kB / 0.4961 GB, free: 8.625 MB / 382.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1507, allocations: 0 / 0.4961 GB, free: 8.625 MB / 382.1 MB Notification: Performance of Templates: time 0.0115/0.1622, allocations: 7.68 MB / 0.5036 GB, free: 0.9688 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/UnitDeduction/UnitDeduction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches