Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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: "" <> buildModelFMU(ModelicaTest.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001705/0.001705, allocations: 104.1 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.001904/0.001905, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.537/1.537, allocations: 227.4 MB / 246.8 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2536/0.2536, allocations: 46.11 MB / 344.2 MB, free: 11.53 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002253/0.002253, allocations: 86.56 kB / 417.8 MB, free: 19.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1496/0.1519, allocations: 62.44 MB / 480.2 MB, free: 5.113 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.006107/0.158, allocations: 4.028 MB / 484.2 MB, free: 1.059 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002924/0.161, allocations: 1.266 MB / 485.5 MB, free: 15.79 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000597/0.1616, allocations: 23.88 kB / 485.5 MB, free: 15.77 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004234/0.1621, allocations: 122.7 kB / 485.6 MB, free: 15.64 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006882/0.1628, allocations: 166.5 kB / 485.8 MB, free: 15.48 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001058/0.1639, allocations: 406 kB / 486.2 MB, free: 15.09 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001067/0.1649, allocations: 0.8268 MB / 487 MB, free: 14.26 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005341/0.1655, allocations: 297.1 kB / 487.3 MB, free: 13.95 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005621/0.1661, allocations: 314.6 kB / 487.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003879/0.1665, allocations: 322.2 kB / 487.9 MB, free: 13.33 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001036/0.1666, allocations: 68 kB / 488 MB, free: 13.26 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001266/0.1667, allocations: 68 kB / 488.1 MB, free: 13.2 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001409/0.1668, allocations: 163.3 kB / 488.2 MB, free: 13.04 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003067/0.1672, allocations: 345.9 kB / 488.6 MB, free: 12.7 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008128/0.168, allocations: 0.7629 MB / 489.3 MB, free: 11.93 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.168, allocations: 0 / 489.3 MB, free: 11.93 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.168, allocations: 3.938 kB / 489.3 MB, free: 11.93 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.518e-06/0.168, allocations: 4 kB / 489.3 MB, free: 11.92 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.001878/0.1699, allocations: 1.063 MB / 490.4 MB, free: 10.81 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.282e-05/0.17, allocations: 8.031 kB / 490.4 MB, free: 10.8 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00014/0.1701, allocations: 94.64 kB / 490.5 MB, free: 10.7 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002868/0.1704, allocations: 99.89 kB / 490.6 MB, free: 10.6 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007001/0.1711, allocations: 0.511 MB / 491.1 MB, free: 10.05 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.954e-05/0.1712, allocations: 45.69 kB / 491.2 MB, free: 10 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.283e-05/0.1713, allocations: 63.84 kB / 491.2 MB, free: 9.938 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001019/0.1723, allocations: 0.6085 MB / 491.8 MB, free: 9.27 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.664e-05/0.1723, allocations: 7.938 kB / 491.8 MB, free: 9.262 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.941e-05/0.1724, allocations: 24 kB / 491.9 MB, free: 9.238 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.833e-05/0.1724, allocations: 16 kB / 491.9 MB, free: 9.223 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007631/0.1732, allocations: 378.2 kB / 492.2 MB, free: 8.852 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00402/0.1772, allocations: 3.005 MB / 495.2 MB, free: 5.707 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009874/0.1782, allocations: 451.9 kB / 495.7 MB, free: 5.246 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003592/0.1786, allocations: 169.7 kB / 495.9 MB, free: 5.074 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.538e-05/0.1786, allocations: 4 kB / 495.9 MB, free: 5.07 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.313e-05/0.1787, allocations: 50.58 kB / 495.9 MB, free: 5.012 MB / 366.1 MB Notification: Performance of pre-optimization done (n=39): time 2.505e-06/0.1787, allocations: 3.938 kB / 495.9 MB, free: 5.008 MB / 366.1 MB Notification: Performance of matching and sorting (n=39): time 0.001261/0.18, allocations: 0.5401 MB / 496.4 MB, free: 4.461 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.364e-05/0.1801, allocations: 132.5 kB / 496.6 MB, free: 4.301 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006876/0.1808, allocations: 0.5509 MB / 497.1 MB, free: 3.738 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.973e-05/0.1808, allocations: 33.7 kB / 497.2 MB, free: 3.699 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003513/0.1812, allocations: 376 kB / 497.5 MB, free: 3.328 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002279/0.1814, allocations: 145.9 kB / 497.7 MB, free: 3.184 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001983/0.1816, allocations: 118.2 kB / 497.8 MB, free: 3.062 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000238/0.1819, allocations: 378.8 kB / 498.2 MB, free: 2.684 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004312/0.1823, allocations: 183.4 kB / 498.3 MB, free: 2.504 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005927/0.1829, allocations: 397.9 kB / 498.7 MB, free: 2.016 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00104/0.184, allocations: 0.5751 MB / 499.3 MB, free: 1.348 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.184, allocations: 0 / 499.3 MB, free: 1.348 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001241/0.1852, allocations: 0.6562 MB / 500 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.412e-05/0.1853, allocations: 6.656 kB / 500 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.381e-05/0.1853, allocations: 8 kB / 500 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.089e-05/0.1853, allocations: 16.62 kB / 500 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005398/0.1859, allocations: 143.7 kB / 0.4884 GB, free: 0.5156 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.23e-05/0.1859, allocations: 16.33 kB / 0.4884 GB, free: 0.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004145/0.1863, allocations: 71.36 kB / 0.4885 GB, free: 440 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.682e-05/0.1864, allocations: 31.98 kB / 0.4885 GB, free: 408 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005216/0.1869, allocations: 301.4 kB / 0.4888 GB, free: 104 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005729/0.1875, allocations: 393.8 kB / 0.4892 GB, free: 15.61 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009037/0.1884, allocations: 0.5522 MB / 0.4897 GB, free: 14.97 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5e-06/0.1884, allocations: 4 kB / 0.4897 GB, free: 14.96 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization_lambda0): time 0.001136/0.1896, allocations: 0.6362 MB / 0.4903 GB, free: 14.32 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.1896, allocations: 8 kB / 0.4904 GB, free: 14.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.1896, allocations: 4 kB / 0.4904 GB, free: 14.31 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.428e-05/0.1896, allocations: 12.69 kB / 0.4904 GB, free: 14.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005101/0.1901, allocations: 143.7 kB / 0.4905 GB, free: 14.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.396e-05/0.1902, allocations: 11.94 kB / 0.4905 GB, free: 14.15 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003783/0.1906, allocations: 59.52 kB / 0.4906 GB, free: 14.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.686e-05/0.1906, allocations: 31.98 kB / 0.4906 GB, free: 14.06 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.000252/0.1909, allocations: 216.1 kB / 0.4908 GB, free: 13.84 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001417/0.191, allocations: 67.16 kB / 0.4909 GB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001845/0.1912, allocations: 78.11 kB / 0.4909 GB, free: 13.69 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.664e-06/0.1912, allocations: 11.94 kB / 0.491 GB, free: 13.68 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.067e-05/0.1912, allocations: 0 / 0.491 GB, free: 13.68 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.395e-06/0.1913, allocations: 7.922 kB / 0.491 GB, free: 13.67 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009877/0.1923, allocations: 0.5596 MB / 0.4915 GB, free: 13.06 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.1923, allocations: 0 / 0.4915 GB, free: 13.06 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004868/0.1928, allocations: 87.88 kB / 0.4916 GB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.1928, allocations: 4 kB / 0.4916 GB, free: 12.97 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.357e-05/0.1928, allocations: 15.92 kB / 0.4916 GB, free: 12.96 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.1928, allocations: 3.938 kB / 0.4916 GB, free: 12.95 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.051e-06/0.1929, allocations: 8 kB / 0.4916 GB, free: 12.95 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001443/0.1943, allocations: 0.7775 MB / 0.4924 GB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002191/0.1945, allocations: 164.3 kB / 0.4925 GB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.511e-05/0.1946, allocations: 15.94 kB / 0.4926 GB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003262/0.1949, allocations: 23.97 kB / 0.4926 GB, free: 11.94 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.631e-05/0.1951, allocations: 31.95 kB / 0.4926 GB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.061e-05/0.1951, allocations: 20 kB / 0.4926 GB, free: 11.89 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004647/0.1956, allocations: 379.1 kB / 0.493 GB, free: 11.52 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1956, allocations: 0 / 0.493 GB, free: 11.52 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008684/0.1964, allocations: 239.1 kB / 0.4932 GB, free: 11.29 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.001709/0.1982, allocations: 1.34 MB / 0.4945 GB, free: 9.922 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00169/0.1999, allocations: 0.7361 MB / 0.4953 GB, free: 9.188 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.491e-06/0.1999, allocations: 384 / 0.4953 GB, free: 9.188 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004113/0.2003, allocations: 195.8 kB / 0.4954 GB, free: 8.996 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001172/0.2015, allocations: 182.5 kB / 0.4956 GB, free: 8.828 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009948/0.2115, allocations: 5.925 MB / 0.5014 GB, free: 2.629 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009262/0.2125, allocations: 0.922 MB / 0.5023 GB, free: 1.68 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004832/0.213, allocations: 72.84 kB / 0.5024 GB, free: 1.609 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004213/0.2134, allocations: 247.4 kB / 0.5026 GB, free: 1.367 MB / 382.1 MB Notification: Performance of SimCode: time 1.843e-06/0.2134, allocations: 0 / 0.5026 GB, free: 1.367 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.48/0.6934, allocations: 12.59 MB / 0.5149 GB, free: 39.24 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.955/8.649, allocations: 15.95 kB / 0.5149 GB, free: 39.23 MB / 382.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.UnitDeduction.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.UnitDeduction_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_UnitDeduction_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_UnitDeduction.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1)