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.0008799/0.00088, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.0008909/0.000891, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.293/1.293, allocations: 205.4 MB / 222.1 MB, free: 5.656 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.3073/0.3073, allocations: 40 MB / 310.4 MB, free: 9.961 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.0005496/0.0005498, allocations: 16 kB / 378.8 MB, free: 12.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1311/0.1317, allocations: 57.96 MB / 436.8 MB, free: 2.594 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.004597/0.1363, allocations: 3.358 MB / 440.1 MB, free: 15.21 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002871/0.1392, allocations: 1.209 MB / 441.3 MB, free: 14 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005191/0.1398, allocations: 23.88 kB / 441.3 MB, free: 13.97 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001304/0.1399, allocations: 51.38 kB / 441.4 MB, free: 13.92 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000585/0.1405, allocations: 183.4 kB / 441.6 MB, free: 13.74 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000682/0.1412, allocations: 291.5 kB / 441.9 MB, free: 13.46 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007292/0.1419, allocations: 0.5508 MB / 442.4 MB, free: 12.91 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003662/0.1423, allocations: 224.7 kB / 442.6 MB, free: 12.68 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003702/0.1427, allocations: 258.8 kB / 442.9 MB, free: 12.42 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002836/0.143, allocations: 258.5 kB / 443.1 MB, free: 12.17 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.182e-05/0.143, allocations: 23.94 kB / 443.2 MB, free: 12.14 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.67e-05/0.1431, allocations: 28 kB / 443.2 MB, free: 12.12 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.559e-05/0.1432, allocations: 99.47 kB / 443.3 MB, free: 12.02 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001044/0.1433, allocations: 141.2 kB / 443.4 MB, free: 11.88 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000498/0.1438, allocations: 0.5455 MB / 444 MB, free: 11.33 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.1438, allocations: 0 / 444 MB, free: 11.33 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1438, allocations: 0 / 444 MB, free: 11.33 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.388e-06/0.1438, allocations: 0 / 444 MB, free: 11.33 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.001623/0.1455, allocations: 0.9502 MB / 444.9 MB, free: 10.33 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.1455, allocations: 12.03 kB / 444.9 MB, free: 10.32 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00013/0.1457, allocations: 94.88 kB / 445 MB, free: 10.22 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006929/0.1464, allocations: 494.5 kB / 445.5 MB, free: 9.699 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.35e-05/0.1464, allocations: 41.31 kB / 445.5 MB, free: 9.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.353e-05/0.1465, allocations: 67.91 kB / 445.6 MB, free: 9.594 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009997/0.1475, allocations: 0.6076 MB / 446.2 MB, free: 8.922 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.975e-05/0.1475, allocations: 4 kB / 446.2 MB, free: 8.918 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.308e-05/0.1476, allocations: 27.95 kB / 446.3 MB, free: 8.891 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.586e-05/0.1476, allocations: 12 kB / 446.3 MB, free: 8.879 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007752/0.1484, allocations: 398.2 kB / 446.7 MB, free: 8.488 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004049/0.1525, allocations: 3.032 MB / 449.7 MB, free: 5.316 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001018/0.1535, allocations: 481.2 kB / 450.2 MB, free: 4.832 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.388e-05/0.1536, allocations: 4 kB / 450.2 MB, free: 4.828 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.202e-05/0.1536, allocations: 42.56 kB / 450.2 MB, free: 4.777 MB / 382.1 MB Notification: Performance of pre-optimization done (n=39): time 2.494e-06/0.1536, allocations: 0 / 450.2 MB, free: 4.777 MB / 382.1 MB Notification: Performance of matching and sorting (n=39): time 0.001262/0.1549, allocations: 0.5643 MB / 450.8 MB, free: 4.207 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.936e-05/0.155, allocations: 110.8 kB / 450.9 MB, free: 4.074 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006861/0.1556, allocations: 0.5431 MB / 451.4 MB, free: 3.523 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.165e-05/0.1557, allocations: 33.7 kB / 451.4 MB, free: 3.484 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002534/0.156, allocations: 380.1 kB / 451.8 MB, free: 3.109 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001324/0.1561, allocations: 157.8 kB / 452 MB, free: 2.953 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.368e-05/0.1561, allocations: 8 kB / 452 MB, free: 2.945 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.1563, allocations: 382.8 kB / 452.4 MB, free: 2.562 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003734/0.1567, allocations: 185.2 kB / 452.5 MB, free: 2.383 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005154/0.1572, allocations: 397 kB / 452.9 MB, free: 1.898 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004456/0.1577, allocations: 231.7 kB / 453.2 MB, free: 1.672 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.1577, allocations: 0 / 453.2 MB, free: 1.672 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001115/0.1588, allocations: 0.6689 MB / 453.8 MB, free: 0.9961 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.1905/0.3493, allocations: 2.617 MB / 456.4 MB, free: 46.24 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.301e-05/0.3493, allocations: 6.906 kB / 456.4 MB, free: 46.24 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.358e-05/0.3494, allocations: 13.12 kB / 456.5 MB, free: 46.24 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006924/0.3501, allocations: 140.3 kB / 456.6 MB, free: 46.24 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.047e-05/0.3501, allocations: 20.66 kB / 456.6 MB, free: 46.24 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00056/0.3507, allocations: 86.94 kB / 456.7 MB, free: 46.24 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.339e-05/0.3508, allocations: 29.31 kB / 456.7 MB, free: 46.24 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.058e-05/0.3508, allocations: 3 kB / 456.7 MB, free: 46.24 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001032/0.3518, allocations: 0.5435 MB / 457.3 MB, free: 46.22 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.152e-05/0.3519, allocations: 5.656 kB / 457.3 MB, free: 46.22 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.3519, allocations: 11.31 kB / 457.3 MB, free: 46.22 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004571/0.3524, allocations: 141.1 kB / 457.4 MB, free: 46.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.382e-05/0.3524, allocations: 15.22 kB / 457.4 MB, free: 46.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004171/0.3528, allocations: 66.31 kB / 457.5 MB, free: 46.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.957e-05/0.3529, allocations: 29.75 kB / 457.5 MB, free: 46.21 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.0002997/0.3532, allocations: 272.7 kB / 457.8 MB, free: 46.01 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001475/0.3533, allocations: 61.66 kB / 457.9 MB, free: 46.01 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001456/0.3535, allocations: 73.5 kB / 457.9 MB, free: 46 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.3535, allocations: 9.281 kB / 457.9 MB, free: 46 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.3535, allocations: 3.938 kB / 457.9 MB, free: 46 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.65e-06/0.3535, allocations: 0 / 457.9 MB, free: 46 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006927/0.3542, allocations: 0.5742 MB / 458.5 MB, free: 45.81 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.3542, allocations: 0 / 458.5 MB, free: 45.81 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004565/0.3547, allocations: 90.8 kB / 458.6 MB, free: 45.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.3547, allocations: 2.906 kB / 458.6 MB, free: 45.8 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.286e-05/0.3547, allocations: 14.86 kB / 458.6 MB, free: 45.8 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.3547, allocations: 3.953 kB / 458.6 MB, free: 45.8 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.3547, allocations: 5.172 kB / 458.6 MB, free: 45.8 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001131/0.3559, allocations: 0.8171 MB / 459.5 MB, free: 45.57 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001819/0.3561, allocations: 174.6 kB / 459.6 MB, free: 45.45 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.806e-05/0.3562, allocations: 12.95 kB / 459.6 MB, free: 45.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003454/0.3565, allocations: 32.47 kB / 459.7 MB, free: 45.45 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.369e-05/0.3566, allocations: 32.73 kB / 459.7 MB, free: 45.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.28e-05/0.3567, allocations: 13.27 kB / 459.7 MB, free: 45.45 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003529/0.357, allocations: 377.4 kB / 460.1 MB, free: 45.35 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.357, allocations: 0 / 460.1 MB, free: 45.35 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008378/0.3579, allocations: 239.4 kB / 460.3 MB, free: 45.31 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.0001363/0.358, allocations: 109.2 kB / 460.4 MB, free: 45.22 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001335/0.3594, allocations: 0.7462 MB / 461.2 MB, free: 45.16 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.3594, allocations: 384 / 461.2 MB, free: 45.16 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003332/0.3597, allocations: 202.8 kB / 461.4 MB, free: 45.15 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007717/0.3605, allocations: 164.5 kB / 461.5 MB, free: 45.14 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002119/0.3626, allocations: 1.672 MB / 463.2 MB, free: 44.25 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003303/0.363, allocations: 0.9254 MB / 464.1 MB, free: 43.54 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003293/0.3633, allocations: 80.89 kB / 464.2 MB, free: 43.53 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001135/0.3634, allocations: 41.92 kB / 464.2 MB, free: 43.53 MB / 382.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3634, allocations: 0 / 464.2 MB, free: 43.53 MB / 382.1 MB Notification: Performance of Templates: time 0.01017/0.3736, allocations: 5.731 MB / 470 MB, free: 43.15 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Blocks.UnitDeduction.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: