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.001495/0.001495, allocations: 100.8 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001847/0.001847, allocations: 202.7 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.644/1.644, allocations: 227.2 MB / 245.9 MB, free: 10.35 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2613/0.2613, allocations: 45.91 MB / 344 MB, free: 12.15 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002686/0.0002686, allocations: 8 kB / 417.9 MB, free: 20.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1529/0.1531, allocations: 63.46 MB / 481.4 MB, free: 5.426 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.004594/0.1578, allocations: 3.395 MB / 484.8 MB, free: 2.004 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003289/0.1611, allocations: 1.201 MB / 486 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006696/0.1619, allocations: 23.88 kB / 486 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001631/0.162, allocations: 55.42 kB / 486 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006884/0.1627, allocations: 175.4 kB / 486.2 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007401/0.1635, allocations: 307.1 kB / 486.5 MB, free: 260 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008441/0.1643, allocations: 0.539 MB / 487.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003948/0.1647, allocations: 220.8 kB / 487.3 MB, free: 15.49 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004855/0.1652, allocations: 266.8 kB / 487.5 MB, free: 15.23 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003129/0.1656, allocations: 250.5 kB / 487.8 MB, free: 14.98 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.212e-05/0.1656, allocations: 24 kB / 487.8 MB, free: 14.96 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001023/0.1657, allocations: 32 kB / 487.8 MB, free: 14.93 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001014/0.1658, allocations: 107.5 kB / 487.9 MB, free: 14.82 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001448/0.166, allocations: 137.3 kB / 488.1 MB, free: 14.68 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006116/0.1666, allocations: 0.5416 MB / 488.6 MB, free: 14.14 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.137e-06/0.1666, allocations: 0 / 488.6 MB, free: 14.14 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.196e-06/0.1666, allocations: 0 / 488.6 MB, free: 14.14 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.247e-05/0.1667, allocations: 0 / 488.6 MB, free: 14.14 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.001746/0.1684, allocations: 0.9464 MB / 489.6 MB, free: 13.14 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/0.1685, allocations: 12.03 kB / 489.6 MB, free: 13.12 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002629/0.1687, allocations: 94.97 kB / 489.7 MB, free: 13.03 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00074/0.1695, allocations: 0.4906 MB / 490.1 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.904e-05/0.1695, allocations: 41.31 kB / 490.2 MB, free: 12.46 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001008/0.1696, allocations: 60 kB / 490.2 MB, free: 12.4 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001064/0.1707, allocations: 0.6201 MB / 490.9 MB, free: 11.72 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.182e-05/0.1707, allocations: 4 kB / 490.9 MB, free: 11.71 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.094e-05/0.1708, allocations: 20 kB / 490.9 MB, free: 11.7 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.635e-05/0.1708, allocations: 16 kB / 490.9 MB, free: 11.68 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007633/0.1716, allocations: 398.2 kB / 491.3 MB, free: 11.29 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00398/0.1756, allocations: 3.036 MB / 494.3 MB, free: 8.113 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001019/0.1766, allocations: 472.2 kB / 494.8 MB, free: 7.633 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.934e-05/0.1767, allocations: 8 kB / 494.8 MB, free: 7.625 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.837e-05/0.1767, allocations: 38.56 kB / 494.8 MB, free: 7.578 MB / 366.1 MB Notification: Performance of pre-optimization done (n=39): time 2.154e-06/0.1767, allocations: 0 / 494.8 MB, free: 7.578 MB / 366.1 MB Notification: Performance of matching and sorting (n=39): time 0.001279/0.178, allocations: 0.5805 MB / 495.4 MB, free: 6.992 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.864e-05/0.1781, allocations: 136.5 kB / 495.6 MB, free: 6.828 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006037/0.1787, allocations: 0.5431 MB / 496.1 MB, free: 6.273 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.81e-05/0.1788, allocations: 33.7 kB / 496.1 MB, free: 6.234 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002716/0.1791, allocations: 371.9 kB / 496.5 MB, free: 5.863 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001406/0.1792, allocations: 157.8 kB / 496.6 MB, free: 5.707 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.243e-05/0.1792, allocations: 8 kB / 496.7 MB, free: 5.699 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001972/0.1794, allocations: 382.8 kB / 497 MB, free: 5.316 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005142/0.18, allocations: 189.2 kB / 497.2 MB, free: 5.133 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007123/0.1807, allocations: 401.9 kB / 497.6 MB, free: 4.641 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006187/0.1813, allocations: 236.5 kB / 497.8 MB, free: 4.41 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.726e-06/0.1813, allocations: 4 kB / 497.8 MB, free: 4.406 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001832/0.1832, allocations: 0.6647 MB / 498.5 MB, free: 3.734 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.00143/0.1846, allocations: 2.619 MB / 0.4894 GB, free: 0.9102 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.243e-05/0.1846, allocations: 8 kB / 0.4894 GB, free: 0.9023 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.534e-05/0.1847, allocations: 8 kB / 0.4894 GB, free: 0.8945 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005472/0.1852, allocations: 143.8 kB / 0.4895 GB, free: 0.7539 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.945e-05/0.1853, allocations: 19.94 kB / 0.4895 GB, free: 0.7344 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004597/0.1857, allocations: 83.31 kB / 0.4896 GB, free: 0.6523 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.968e-05/0.1858, allocations: 24 kB / 0.4897 GB, free: 0.6289 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.668e-06/0.1858, allocations: 4 kB / 0.4897 GB, free: 0.625 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009601/0.1868, allocations: 0.5537 MB / 0.4902 GB, free: 72 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.553e-06/0.1868, allocations: 4 kB / 0.4902 GB, free: 68 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.148e-05/0.1868, allocations: 12.69 kB / 0.4902 GB, free: 56 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004928/0.1873, allocations: 143.8 kB / 0.4903 GB, free: 15.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.372e-05/0.1873, allocations: 8 kB / 0.4904 GB, free: 15.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003498/0.1877, allocations: 63.52 kB / 0.4904 GB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.866e-05/0.1877, allocations: 24 kB / 0.4904 GB, free: 15.82 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003727/0.1881, allocations: 286.7 kB / 0.4907 GB, free: 15.53 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001297/0.1882, allocations: 59.25 kB / 0.4908 GB, free: 15.47 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001603/0.1884, allocations: 82.16 kB / 0.4908 GB, free: 15.39 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.394e-06/0.1884, allocations: 7.938 kB / 0.4909 GB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.033e-05/0.1884, allocations: 0 / 0.4909 GB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.1884, allocations: 0 / 0.4909 GB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009589/0.1894, allocations: 0.575 MB / 0.4914 GB, free: 14.76 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.1894, allocations: 4 kB / 0.4914 GB, free: 14.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004968/0.1899, allocations: 99.88 kB / 0.4915 GB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.1899, allocations: 0 / 0.4915 GB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.096e-05/0.19, allocations: 12 kB / 0.4915 GB, free: 14.64 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.19, allocations: 4 kB / 0.4915 GB, free: 14.64 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.19, allocations: 0 / 0.4915 GB, free: 14.64 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001448/0.1914, allocations: 0.821 MB / 0.4923 GB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002296/0.1917, allocations: 164.4 kB / 0.4925 GB, free: 13.62 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.378e-05/0.1918, allocations: 12 kB / 0.4925 GB, free: 13.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003454/0.1921, allocations: 35.97 kB / 0.4925 GB, free: 13.57 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001143/0.1922, allocations: 27.95 kB / 0.4926 GB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.864e-05/0.1923, allocations: 15.94 kB / 0.4926 GB, free: 13.53 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005231/0.1928, allocations: 375.1 kB / 0.4929 GB, free: 13.17 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1928, allocations: 0 / 0.4929 GB, free: 13.17 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001064/0.1939, allocations: 247.1 kB / 0.4932 GB, free: 12.93 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002328/0.1941, allocations: 114.1 kB / 0.4933 GB, free: 12.8 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001724/0.1959, allocations: 0.7484 MB / 0.494 GB, free: 12.06 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.1959, allocations: 0 / 0.494 GB, free: 12.06 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003927/0.1963, allocations: 192.9 kB / 0.4942 GB, free: 11.87 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009037/0.1972, allocations: 153.5 kB / 0.4943 GB, free: 11.73 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00257/0.1998, allocations: 1.694 MB / 0.496 GB, free: 10 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005302/0.2003, allocations: 0.9224 MB / 0.4969 GB, free: 9.055 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003457/0.2007, allocations: 80.83 kB / 0.497 GB, free: 8.973 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001198/0.2008, allocations: 39.44 kB / 0.497 GB, free: 8.934 MB / 382.1 MB Notification: Performance of SimCode: time 1.102e-06/0.2008, allocations: 0 / 0.497 GB, free: 8.934 MB / 382.1 MB Notification: Performance of Templates: time 0.01156/0.2124, allocations: 5.826 MB / 0.5027 GB, free: 3.164 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","../files/ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches