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.001292/0.001291, allocations: 104.6 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001401/0.001401, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.528/1.528, allocations: 227.4 MB / 246.8 MB, free: 10.53 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2823/0.2823, allocations: 46.1 MB / 344.1 MB, free: 11.58 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001343/0.001343, allocations: 78.72 kB / 417.6 MB, free: 19.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1547/0.1561, allocations: 62.44 MB / 480 MB, free: 5.277 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.006312/0.1624, allocations: 4.03 MB / 484 MB, free: 1.223 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003962/0.1664, allocations: 1.266 MB / 485.3 MB, free: 15.95 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005018/0.1669, allocations: 23.88 kB / 485.3 MB, free: 15.93 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003718/0.1673, allocations: 122.7 kB / 485.4 MB, free: 15.81 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000524/0.1679, allocations: 154.5 kB / 485.6 MB, free: 15.66 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009391/0.1689, allocations: 414.8 kB / 486 MB, free: 15.25 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009231/0.1698, allocations: 0.8229 MB / 486.8 MB, free: 14.43 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00055/0.1704, allocations: 293 kB / 487.1 MB, free: 14.13 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005152/0.1709, allocations: 330.6 kB / 487.4 MB, free: 13.8 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003867/0.1713, allocations: 322.2 kB / 487.8 MB, free: 13.49 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.595e-05/0.1714, allocations: 64 kB / 487.8 MB, free: 13.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001531/0.1716, allocations: 71.98 kB / 487.9 MB, free: 13.36 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001359/0.1717, allocations: 155.3 kB / 488 MB, free: 13.2 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003402/0.172, allocations: 353.9 kB / 488.4 MB, free: 12.86 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008382/0.1729, allocations: 0.7628 MB / 489.1 MB, free: 12.09 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.1729, allocations: 4 kB / 489.1 MB, free: 12.09 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1729, allocations: 0 / 489.1 MB, free: 12.09 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.198e-05/0.1729, allocations: 0 / 489.1 MB, free: 12.09 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.001803/0.1747, allocations: 1.059 MB / 490.2 MB, free: 10.98 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.03e-05/0.1748, allocations: 13.05 kB / 490.2 MB, free: 10.96 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002759/0.1751, allocations: 95.91 kB / 490.3 MB, free: 10.87 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006857/0.1758, allocations: 0.5148 MB / 490.8 MB, free: 10.32 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.78e-05/0.1759, allocations: 45.69 kB / 490.9 MB, free: 10.27 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.224e-05/0.1759, allocations: 60.12 kB / 490.9 MB, free: 10.21 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001028/0.177, allocations: 0.6201 MB / 491.6 MB, free: 9.531 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.698e-05/0.177, allocations: 7.938 kB / 491.6 MB, free: 9.523 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.921e-05/0.1771, allocations: 24 kB / 491.6 MB, free: 9.5 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.433e-05/0.1771, allocations: 12 kB / 491.6 MB, free: 9.488 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007301/0.1778, allocations: 378.2 kB / 492 MB, free: 9.117 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003958/0.1818, allocations: 3.005 MB / 495 MB, free: 5.973 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009362/0.1828, allocations: 448.3 kB / 495.4 MB, free: 5.516 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003305/0.1831, allocations: 169.7 kB / 495.6 MB, free: 5.344 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.608e-05/0.1831, allocations: 7.984 kB / 495.6 MB, free: 5.336 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.351e-05/0.1832, allocations: 42.56 kB / 495.6 MB, free: 5.285 MB / 366.1 MB Notification: Performance of pre-optimization done (n=39): time 1.703e-06/0.1832, allocations: 3.938 kB / 495.6 MB, free: 5.281 MB / 366.1 MB Notification: Performance of matching and sorting (n=39): time 0.001191/0.1844, allocations: 0.544 MB / 496.2 MB, free: 4.73 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001342/0.1845, allocations: 132.5 kB / 496.3 MB, free: 4.57 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005841/0.1851, allocations: 0.5509 MB / 496.8 MB, free: 4.008 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.298e-05/0.1852, allocations: 37.7 kB / 496.9 MB, free: 3.965 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000277/0.1855, allocations: 372 kB / 497.2 MB, free: 3.598 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001193/0.1856, allocations: 149.9 kB / 497.4 MB, free: 3.449 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001482/0.1857, allocations: 118.2 kB / 497.5 MB, free: 3.328 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001594/0.1859, allocations: 374.8 kB / 497.9 MB, free: 2.953 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003716/0.1863, allocations: 187.4 kB / 498.1 MB, free: 2.77 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006034/0.1869, allocations: 397.9 kB / 498.4 MB, free: 2.281 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009076/0.1878, allocations: 0.5712 MB / 499 MB, free: 1.617 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.326e-06/0.1878, allocations: 4 kB / 499 MB, free: 1.613 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001118/0.189, allocations: 0.6448 MB / 499.7 MB, free: 0.9609 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.322e-05/0.189, allocations: 10.66 kB / 499.7 MB, free: 0.9531 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/0.189, allocations: 4 kB / 499.7 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.225e-05/0.1891, allocations: 16.62 kB / 499.7 MB, free: 0.9336 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004888/0.1895, allocations: 143.8 kB / 499.8 MB, free: 0.793 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.9e-05/0.1896, allocations: 16 kB / 499.9 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004105/0.19, allocations: 83.25 kB / 499.9 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.213e-05/0.19, allocations: 24 kB / 500 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005267/0.1906, allocations: 305.4 kB / 0.4885 GB, free: 380 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005958/0.1912, allocations: 393.7 kB / 0.4889 GB, free: 15.89 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000863/0.1921, allocations: 0.5561 MB / 0.4895 GB, free: 15.24 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.438e-06/0.1921, allocations: 7.938 kB / 0.4895 GB, free: 15.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization_lambda0): time 0.001101/0.1932, allocations: 0.6246 MB / 0.4901 GB, free: 14.6 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.226e-05/0.1932, allocations: 8 kB / 0.4901 GB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.1932, allocations: 4 kB / 0.4901 GB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.196e-05/0.1932, allocations: 12.69 kB / 0.4901 GB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004582/0.1937, allocations: 139.8 kB / 0.4902 GB, free: 14.44 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.478e-05/0.1937, allocations: 19.86 kB / 0.4902 GB, free: 14.42 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003375/0.1941, allocations: 63.52 kB / 0.4903 GB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.666e-05/0.1941, allocations: 28 kB / 0.4903 GB, free: 14.33 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.0001899/0.1943, allocations: 216.6 kB / 0.4905 GB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001116/0.1944, allocations: 59.25 kB / 0.4906 GB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001536/0.1946, allocations: 78.17 kB / 0.4907 GB, free: 13.97 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.065e-05/0.1946, allocations: 11.88 kB / 0.4907 GB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.024e-05/0.1946, allocations: 3.938 kB / 0.4907 GB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.558e-06/0.1946, allocations: 3.984 kB / 0.4907 GB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000769/0.1954, allocations: 0.5673 MB / 0.4912 GB, free: 13.33 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.1954, allocations: 3.984 kB / 0.4912 GB, free: 13.33 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004498/0.1959, allocations: 87.89 kB / 0.4913 GB, free: 13.24 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.1959, allocations: 0 / 0.4913 GB, free: 13.24 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.405e-05/0.1959, allocations: 12 kB / 0.4913 GB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.4e-06/0.1959, allocations: 7.938 kB / 0.4913 GB, free: 13.22 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.196, allocations: 4 kB / 0.4914 GB, free: 13.22 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001236/0.1972, allocations: 0.7775 MB / 0.4921 GB, free: 12.43 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001954/0.1974, allocations: 168.3 kB / 0.4923 GB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.606e-05/0.1975, allocations: 8 kB / 0.4923 GB, free: 12.24 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003236/0.1978, allocations: 35.91 kB / 0.4923 GB, free: 12.2 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.706e-05/0.1979, allocations: 31.95 kB / 0.4923 GB, free: 12.17 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.079e-05/0.1979, allocations: 8 kB / 0.4924 GB, free: 12.16 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004092/0.1983, allocations: 387 kB / 0.4927 GB, free: 11.79 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1983, allocations: 0 / 0.4927 GB, free: 11.79 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007579/0.1991, allocations: 235.2 kB / 0.4929 GB, free: 11.56 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.0001398/0.1993, allocations: 107.1 kB / 0.493 GB, free: 11.45 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001389/0.2007, allocations: 0.7444 MB / 0.4938 GB, free: 10.71 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.2007, allocations: 0 / 0.4938 GB, free: 10.71 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003517/0.201, allocations: 195.9 kB / 0.494 GB, free: 10.52 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009735/0.202, allocations: 175.7 kB / 0.4941 GB, free: 10.35 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00232/0.2043, allocations: 1.415 MB / 0.4955 GB, free: 8.898 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004478/0.2048, allocations: 0.9065 MB / 0.4964 GB, free: 7.965 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003309/0.2051, allocations: 84.83 kB / 0.4965 GB, free: 7.883 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001129/0.2053, allocations: 39.44 kB / 0.4965 GB, free: 7.844 MB / 382.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2053, allocations: 0 / 0.4965 GB, free: 7.844 MB / 382.1 MB Notification: Performance of Templates: time 0.01171/0.217, allocations: 6.348 MB / 0.5027 GB, free: 1.555 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