Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_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.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+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.1_ModelicaTest.Blocks.UnitDeduction") translateModel(ModelicaTest.Blocks.UnitDeduction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Blocks.UnitDeduction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001032/0.001032, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001152/0.001152, allocations: 190.9 kB / 16.14 MB, free: 6.703 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.486/1.486, allocations: 205.1 MB / 222 MB, free: 4.77 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.2927/0.2927, allocations: 37.97 MB / 307.3 MB, free: 10.02 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.1. 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.001386/0.001386, allocations: 61.19 kB / 374.5 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1386/0.14, allocations: 56.47 MB / 431 MB, free: 7.07 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.005075/0.1451, allocations: 4.013 MB / 435 MB, free: 3.027 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002438/0.1476, allocations: 1.251 MB / 436.3 MB, free: 1.77 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00042/0.148, allocations: 23.88 kB / 436.3 MB, free: 1.746 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003384/0.1484, allocations: 83.16 kB / 436.4 MB, free: 1.664 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005069/0.1489, allocations: 143 kB / 436.5 MB, free: 1.523 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007221/0.1496, allocations: 359.5 kB / 436.9 MB, free: 1.172 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008222/0.1505, allocations: 0.7954 MB / 437.7 MB, free: 384 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004532/0.1509, allocations: 276.4 kB / 437.9 MB, free: 92 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003836/0.1513, allocations: 286.5 kB / 438.2 MB, free: 15.81 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003346/0.1517, allocations: 302.2 kB / 438.5 MB, free: 15.51 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.653e-05/0.1518, allocations: 40 kB / 438.6 MB, free: 15.47 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.8e-05/0.1518, allocations: 36 kB / 438.6 MB, free: 15.44 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001071/0.152, allocations: 127.3 kB / 438.7 MB, free: 15.31 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002715/0.1522, allocations: 325.9 kB / 439 MB, free: 14.99 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005897/0.1528, allocations: 0.716 MB / 439.7 MB, free: 14.27 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.965e-06/0.1528, allocations: 4 kB / 439.7 MB, free: 14.27 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1528, allocations: 3.938 kB / 439.8 MB, free: 14.27 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.355e-06/0.1529, allocations: 0 / 439.8 MB, free: 14.27 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.001755/0.1546, allocations: 1.059 MB / 440.8 MB, free: 13.16 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.077e-05/0.1547, allocations: 8.031 kB / 440.8 MB, free: 13.15 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001307/0.1548, allocations: 91.91 kB / 440.9 MB, free: 13.06 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000702/0.1555, allocations: 0.507 MB / 441.4 MB, free: 12.51 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.688e-05/0.1556, allocations: 41.69 kB / 441.5 MB, free: 12.47 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.755e-05/0.1557, allocations: 60.38 kB / 441.5 MB, free: 12.41 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001021/0.1567, allocations: 0.6155 MB / 442.1 MB, free: 11.73 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.088e-05/0.1567, allocations: 0 / 442.1 MB, free: 11.73 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.047e-05/0.1568, allocations: 24 kB / 442.2 MB, free: 11.71 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.268e-05/0.1568, allocations: 12 kB / 442.2 MB, free: 11.7 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007592/0.1576, allocations: 390.2 kB / 442.5 MB, free: 11.31 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003711/0.1613, allocations: 2.997 MB / 445.5 MB, free: 8.172 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009101/0.1622, allocations: 449.6 kB / 446 MB, free: 7.715 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003489/0.1626, allocations: 165.7 kB / 446.1 MB, free: 7.547 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.846e-05/0.1626, allocations: 7.984 kB / 446.2 MB, free: 7.539 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.629e-05/0.1626, allocations: 42.64 kB / 446.2 MB, free: 7.488 MB / 382.1 MB Notification: Performance of pre-optimization done (n=39): time 2.745e-06/0.1627, allocations: 3.938 kB / 446.2 MB, free: 7.484 MB / 382.1 MB Notification: Performance of matching and sorting (n=39): time 0.001226/0.1639, allocations: 0.5401 MB / 446.7 MB, free: 6.938 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.588e-05/0.164, allocations: 118.7 kB / 446.9 MB, free: 6.797 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006353/0.1646, allocations: 0.5431 MB / 447.4 MB, free: 6.246 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.845e-05/0.1647, allocations: 33.7 kB / 447.4 MB, free: 6.207 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002875/0.165, allocations: 380 kB / 447.8 MB, free: 5.832 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000123/0.1651, allocations: 157.8 kB / 448 MB, free: 5.676 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000173/0.1653, allocations: 114.2 kB / 448.1 MB, free: 5.559 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001863/0.1655, allocations: 382.7 kB / 448.4 MB, free: 5.176 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004066/0.1659, allocations: 183.4 kB / 448.6 MB, free: 4.996 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005532/0.1664, allocations: 397 kB / 449 MB, free: 4.512 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009579/0.1674, allocations: 0.5722 MB / 449.6 MB, free: 3.848 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.153e-06/0.1674, allocations: 4 kB / 449.6 MB, free: 3.844 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001161/0.1686, allocations: 0.6484 MB / 450.2 MB, free: 3.188 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/0.1686, allocations: 12.16 kB / 450.2 MB, free: 3.176 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/0.1686, allocations: 8 kB / 450.3 MB, free: 3.168 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.046e-05/0.1687, allocations: 8 kB / 450.3 MB, free: 3.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005264/0.1692, allocations: 147.7 kB / 450.4 MB, free: 3.016 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.012e-05/0.1692, allocations: 15.88 kB / 450.4 MB, free: 3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003658/0.1696, allocations: 71.42 kB / 450.5 MB, free: 2.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.782e-05/0.1696, allocations: 24 kB / 450.5 MB, free: 2.906 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00048/0.1701, allocations: 317.4 kB / 450.8 MB, free: 2.594 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004606/0.1706, allocations: 373.1 kB / 451.2 MB, free: 2.137 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008126/0.1714, allocations: 0.5524 MB / 451.7 MB, free: 1.492 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.18e-06/0.1714, allocations: 4 kB / 451.7 MB, free: 1.488 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization_lambda0): time 0.00104/0.1725, allocations: 0.6334 MB / 452.4 MB, free: 0.8477 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.048e-05/0.1725, allocations: 8 kB / 452.4 MB, free: 0.8398 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.1725, allocations: 8.094 kB / 452.4 MB, free: 0.832 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.894e-06/0.1725, allocations: 12 kB / 452.4 MB, free: 0.8203 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004679/0.173, allocations: 135.8 kB / 452.5 MB, free: 0.6875 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.019e-05/0.173, allocations: 8 kB / 452.5 MB, free: 0.6797 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003405/0.1734, allocations: 67.45 kB / 452.6 MB, free: 0.6133 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.344e-05/0.1734, allocations: 24 kB / 452.6 MB, free: 0.5898 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.0001621/0.1736, allocations: 224 kB / 452.9 MB, free: 372 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001173/0.1737, allocations: 71.14 kB / 452.9 MB, free: 300 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001275/0.1738, allocations: 74.17 kB / 453 MB, free: 216 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.715e-06/0.1739, allocations: 4 kB / 453 MB, free: 212 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.558e-06/0.1739, allocations: 7.875 kB / 453 MB, free: 204 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.1739, allocations: 0 / 453 MB, free: 204 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2291/0.403, allocations: 0.5719 MB / 453.6 MB, free: 53.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.036e-05/0.4031, allocations: 0 / 453.6 MB, free: 53.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009534/0.4041, allocations: 82.77 kB / 453.7 MB, free: 53.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-05/0.4041, allocations: 6.047 kB / 453.7 MB, free: 53.77 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.364e-05/0.4042, allocations: 10.56 kB / 453.7 MB, free: 53.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.176e-06/0.4042, allocations: 3.219 kB / 453.7 MB, free: 53.77 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.4042, allocations: 3.75 kB / 453.7 MB, free: 53.77 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002176/0.4064, allocations: 0.7724 MB / 454.5 MB, free: 53.55 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003025/0.4067, allocations: 177.3 kB / 454.6 MB, free: 53.46 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001397/0.4069, allocations: 7.969 kB / 454.6 MB, free: 53.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006519/0.4076, allocations: 25.89 kB / 454.7 MB, free: 53.46 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001635/0.4078, allocations: 36.5 kB / 454.7 MB, free: 53.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.369e-05/0.4078, allocations: 13.78 kB / 454.7 MB, free: 53.46 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007391/0.4086, allocations: 375.5 kB / 455.1 MB, free: 53.37 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.4086, allocations: 3.156 kB / 455.1 MB, free: 53.37 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001476/0.4101, allocations: 239.4 kB / 455.3 MB, free: 53.36 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.000175/0.4103, allocations: 109.7 kB / 455.4 MB, free: 53.27 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00225/0.4125, allocations: 0.7201 MB / 456.1 MB, free: 53.09 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.4126, allocations: 0 / 456.1 MB, free: 53.09 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006079/0.4132, allocations: 189.4 kB / 456.3 MB, free: 53.04 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001802/0.415, allocations: 167 kB / 456.5 MB, free: 53 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003309/0.4183, allocations: 1.654 MB / 458.1 MB, free: 52 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004825/0.4188, allocations: 0.9088 MB / 459.1 MB, free: 51.3 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005971/0.4194, allocations: 79.94 kB / 459.1 MB, free: 51.29 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001895/0.4197, allocations: 40.47 kB / 459.2 MB, free: 51.28 MB / 382.1 MB Notification: Performance of SimCode: time 7.82e-07/0.4197, allocations: 0 / 459.2 MB, free: 51.28 MB / 382.1 MB Notification: Performance of Templates: time 0.01874/0.4384, allocations: 5.994 MB / 465.2 MB, free: 50.91 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Blocks.UnitDeduction.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Blocks.UnitDeduction.sim & ./ModelicaTest_3.2.1_ModelicaTest.Blocks.UnitDeduction -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1)