Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Blocks.UnitDeduction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.UnitDeduction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.UnitDeduction") translateModel(ModelicaTest.Blocks.UnitDeduction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.UnitDeduction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00106/0.00106, allocations: 103.4 kB / 15.33 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001375/0.001375, allocations: 195.6 kB / 16.25 MB, free: 6.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.691/1.691, allocations: 205.1 MB / 222.1 MB, free: 4.699 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.3987/0.3987, allocations: 39.92 MB / 309.4 MB, free: 9.594 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaTest requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001511/0.001511, allocations: 63.91 kB / 377.1 MB, free: 13.3 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1387/0.1402, allocations: 56.88 MB / 434 MB, free: 4.316 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.005524/0.1458, allocations: 4.009 MB / 438 MB, free: 284 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002539/0.1484, allocations: 1.244 MB / 439.2 MB, free: 15.03 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003646/0.1488, allocations: 27.88 kB / 439.3 MB, free: 15 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002802/0.1491, allocations: 75.23 kB / 439.3 MB, free: 14.93 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004866/0.1496, allocations: 154.9 kB / 439.5 MB, free: 14.77 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000643/0.1502, allocations: 355.6 kB / 439.8 MB, free: 14.43 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007095/0.1509, allocations: 0.8462 MB / 440.7 MB, free: 13.58 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004494/0.1514, allocations: 300.9 kB / 441 MB, free: 13.27 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003921/0.1518, allocations: 326.5 kB / 441.3 MB, free: 12.95 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003195/0.1521, allocations: 322.2 kB / 441.6 MB, free: 12.64 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.877e-05/0.1522, allocations: 64 kB / 441.7 MB, free: 12.57 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.008e-05/0.1523, allocations: 68 kB / 441.7 MB, free: 12.51 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00013/0.1525, allocations: 159.3 kB / 441.9 MB, free: 12.35 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002665/0.1527, allocations: 345.9 kB / 442.2 MB, free: 12.01 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007029/0.1534, allocations: 0.7745 MB / 443 MB, free: 11.23 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.1535, allocations: 0 / 443 MB, free: 11.23 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1535, allocations: 4 kB / 443 MB, free: 11.23 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.929e-06/0.1535, allocations: 0 / 443 MB, free: 11.23 MB / 382.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.001495/0.155, allocations: 1.063 MB / 444.1 MB, free: 10.11 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.077e-05/0.155, allocations: 11.89 kB / 444.1 MB, free: 10.1 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001214/0.1552, allocations: 91.81 kB / 444.2 MB, free: 10.01 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005792/0.1557, allocations: 0.5033 MB / 444.7 MB, free: 9.469 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.595e-05/0.1558, allocations: 45.69 kB / 444.7 MB, free: 9.426 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.349e-05/0.1559, allocations: 63.84 kB / 444.8 MB, free: 9.363 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009411/0.1568, allocations: 0.6037 MB / 445.4 MB, free: 8.703 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.317e-05/0.1569, allocations: 11.92 kB / 445.4 MB, free: 8.691 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.626e-05/0.1569, allocations: 20 kB / 445.4 MB, free: 8.672 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.319e-05/0.1569, allocations: 20 kB / 445.4 MB, free: 8.652 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007/0.1576, allocations: 378.2 kB / 445.8 MB, free: 8.281 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003612/0.1613, allocations: 3.009 MB / 448.8 MB, free: 5.129 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008813/0.1622, allocations: 437.8 kB / 449.2 MB, free: 4.684 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003235/0.1625, allocations: 173.6 kB / 449.4 MB, free: 4.508 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.237e-05/0.1625, allocations: 12.02 kB / 449.4 MB, free: 4.496 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.592e-05/0.1626, allocations: 34.56 kB / 449.5 MB, free: 4.453 MB / 382.1 MB Notification: Performance of pre-optimization done (n=39): time 1.643e-06/0.1626, allocations: 7.938 kB / 449.5 MB, free: 4.445 MB / 382.1 MB Notification: Performance of matching and sorting (n=39): time 0.001131/0.1637, allocations: 0.548 MB / 450 MB, free: 3.891 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.969e-05/0.1638, allocations: 110.8 kB / 450.1 MB, free: 3.758 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005548/0.1644, allocations: 0.5431 MB / 450.7 MB, free: 3.207 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.82e-05/0.1644, allocations: 37.7 kB / 450.7 MB, free: 3.164 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002447/0.1647, allocations: 372 kB / 451.1 MB, free: 2.793 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001687/0.1649, allocations: 153.8 kB / 451.2 MB, free: 2.641 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001576/0.165, allocations: 110.2 kB / 451.3 MB, free: 2.527 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001697/0.1652, allocations: 378.8 kB / 451.7 MB, free: 2.148 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003698/0.1656, allocations: 187.4 kB / 451.9 MB, free: 1.965 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004904/0.1661, allocations: 405 kB / 452.3 MB, free: 1.473 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000832/0.1669, allocations: 0.5636 MB / 452.8 MB, free: 0.8164 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.1669, allocations: 4 kB / 452.8 MB, free: 0.8125 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001153/0.1681, allocations: 0.6489 MB / 453.5 MB, free: 160 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.71e-05/0.1681, allocations: 8 kB / 453.5 MB, free: 152 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.425e-05/0.1682, allocations: 8 kB / 453.5 MB, free: 144 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.421e-05/0.1682, allocations: 19.88 kB / 453.5 MB, free: 124 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2239/0.3921, allocations: 136.6 kB / 453.7 MB, free: 51.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.492e-05/0.3922, allocations: 12.22 kB / 453.7 MB, free: 51.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000728/0.3929, allocations: 75.7 kB / 453.7 MB, free: 51.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.531e-05/0.393, allocations: 28.86 kB / 453.8 MB, free: 51.59 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006008/0.3936, allocations: 302 kB / 454.1 MB, free: 51.5 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003714/0.394, allocations: 385.8 kB / 454.4 MB, free: 51.26 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007025/0.3947, allocations: 0.5471 MB / 455 MB, free: 51.02 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.889e-06/0.3947, allocations: 5.906 kB / 455 MB, free: 51.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization_lambda0): time 0.001116/0.3958, allocations: 0.6312 MB / 455.6 MB, free: 50.98 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/0.3959, allocations: 8.312 kB / 455.6 MB, free: 50.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.3959, allocations: 11.81 kB / 455.6 MB, free: 50.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.046e-05/0.3959, allocations: 8.125 kB / 455.7 MB, free: 50.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004545/0.3964, allocations: 136.4 kB / 455.8 MB, free: 50.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.585e-05/0.3964, allocations: 19.56 kB / 455.8 MB, free: 50.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003518/0.3967, allocations: 65.48 kB / 455.9 MB, free: 50.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.24e-05/0.3968, allocations: 23.41 kB / 455.9 MB, free: 50.98 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.0001632/0.3969, allocations: 220.4 kB / 456.1 MB, free: 50.8 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001011/0.3971, allocations: 63.78 kB / 456.2 MB, free: 50.8 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001598/0.3972, allocations: 76.83 kB / 456.2 MB, free: 50.79 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.3972, allocations: 7.891 kB / 456.3 MB, free: 50.79 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.634e-06/0.3972, allocations: 3.812 kB / 456.3 MB, free: 50.79 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.134e-06/0.3973, allocations: 3.422 kB / 456.3 MB, free: 50.79 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006818/0.3979, allocations: 0.5662 MB / 456.8 MB, free: 50.6 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.398, allocations: 3.938 kB / 456.8 MB, free: 50.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004546/0.3984, allocations: 91.52 kB / 456.9 MB, free: 50.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.025e-06/0.3984, allocations: 0 / 456.9 MB, free: 50.59 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.421e-05/0.3985, allocations: 7.625 kB / 456.9 MB, free: 50.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/0.3985, allocations: 3.094 kB / 456.9 MB, free: 50.59 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.3985, allocations: 0 / 456.9 MB, free: 50.59 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001065/0.3996, allocations: 0.781 MB / 457.7 MB, free: 50.38 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001541/0.3997, allocations: 178.5 kB / 457.9 MB, free: 50.25 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.93e-05/0.3998, allocations: 11.56 kB / 457.9 MB, free: 50.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003238/0.4001, allocations: 30.28 kB / 457.9 MB, free: 50.25 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.198e-05/0.4002, allocations: 30.09 kB / 458 MB, free: 50.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.337e-05/0.4003, allocations: 10.38 kB / 458 MB, free: 50.25 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003865/0.4007, allocations: 374.2 kB / 458.3 MB, free: 50.15 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.403e-06/0.4007, allocations: 0 / 458.3 MB, free: 50.15 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007904/0.4015, allocations: 240.5 kB / 458.6 MB, free: 50.09 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.0001303/0.4016, allocations: 110.5 kB / 458.7 MB, free: 50 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001317/0.4029, allocations: 0.7445 MB / 459.4 MB, free: 49.81 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.4029, allocations: 384 / 459.4 MB, free: 49.81 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003393/0.4033, allocations: 193.5 kB / 459.6 MB, free: 49.76 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001169/0.4045, allocations: 194.2 kB / 459.8 MB, free: 49.71 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002076/0.4066, allocations: 1.64 MB / 461.4 MB, free: 48.68 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002972/0.4069, allocations: 0.9153 MB / 462.4 MB, free: 47.96 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003159/0.4072, allocations: 69.38 kB / 462.4 MB, free: 47.95 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001104/0.4073, allocations: 50.2 kB / 462.5 MB, free: 47.94 MB / 382.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4073, allocations: 0 / 462.5 MB, free: 47.94 MB / 382.1 MB Notification: Performance of Templates: time 0.009459/0.4168, allocations: 6.275 MB / 468.7 MB, free: 47.57 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Blocks.UnitDeduction.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Blocks.UnitDeduction.sim & ./ModelicaTest_3.2.2_ModelicaTest.Blocks.UnitDeduction -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1)