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.009641/0.00964, allocations: 95.61 kB / 15.73 MB, free: 6.047 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.001641/0.001641, allocations: 197.7 kB / 16.67 MB, free: 5.973 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.479/1.479, allocations: 205.1 MB / 222.6 MB, free: 4.527 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.3342/0.3342, allocations: 39.94 MB / 309.8 MB, free: 9.43 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.001357/0.001357, allocations: 71.89 kB / 435.8 MB, free: 2.461 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3171/0.3184, allocations: 56.87 MB / 492.6 MB, free: 19.48 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.006882/0.3254, allocations: 4.024 MB / 496.7 MB, free: 16.62 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003594/0.329, allocations: 1.254 MB / 497.9 MB, free: 15.72 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006959/0.3298, allocations: 28.5 kB / 498 MB, free: 15.71 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004297/0.3302, allocations: 118.4 kB / 498.1 MB, free: 15.62 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000816/0.3311, allocations: 176.6 kB / 498.2 MB, free: 15.49 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00116/0.3322, allocations: 393.7 kB / 498.6 MB, free: 15.28 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001373/0.3336, allocations: 0.8495 MB / 499.5 MB, free: 14.85 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006393/0.3343, allocations: 293.6 kB / 499.8 MB, free: 14.69 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007195/0.335, allocations: 320.7 kB / 0.4884 GB, free: 14.52 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005483/0.3356, allocations: 321 kB / 0.4887 GB, free: 14.34 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001318/0.3357, allocations: 63.94 kB / 0.4887 GB, free: 14.34 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001431/0.3359, allocations: 66.69 kB / 0.4888 GB, free: 14.34 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001565/0.336, allocations: 161.2 kB / 0.4889 GB, free: 14.23 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003529/0.3364, allocations: 347.6 kB / 0.4893 GB, free: 13.99 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001299/0.3377, allocations: 0.8092 MB / 0.4901 GB, free: 13.61 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.082e-06/0.3377, allocations: 1.062 kB / 0.4901 GB, free: 13.61 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3377, allocations: 0 / 0.4901 GB, free: 13.61 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.3e-05/0.3377, allocations: 0 / 0.4901 GB, free: 13.61 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.002095/0.3398, allocations: 1.091 MB / 0.4911 GB, free: 12.83 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.077e-05/0.3399, allocations: 13.23 kB / 0.4911 GB, free: 12.83 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001637/0.3401, allocations: 97.59 kB / 0.4912 GB, free: 12.78 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001102/0.3412, allocations: 0.5383 MB / 0.4918 GB, free: 12.39 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.749e-05/0.3413, allocations: 44.69 kB / 0.4918 GB, free: 12.37 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001235/0.3414, allocations: 62.98 kB / 0.4919 GB, free: 12.35 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001206/0.3426, allocations: 0.6172 MB / 0.4925 GB, free: 11.98 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.901e-05/0.3426, allocations: 5.969 kB / 0.4925 GB, free: 11.98 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.022e-05/0.3427, allocations: 26.81 kB / 0.4925 GB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.926e-05/0.3427, allocations: 13.75 kB / 0.4925 GB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008403/0.3436, allocations: 390 kB / 0.4929 GB, free: 11.83 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003655/0.3472, allocations: 2.988 MB / 0.4958 GB, free: 9.469 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001032/0.3483, allocations: 439.9 kB / 0.4962 GB, free: 9.238 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003851/0.3487, allocations: 175.2 kB / 0.4964 GB, free: 9.145 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.482e-05/0.3487, allocations: 4.656 kB / 0.4964 GB, free: 9.145 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.588e-05/0.3488, allocations: 41.41 kB / 0.4964 GB, free: 9.098 MB / 382.1 MB Notification: Performance of pre-optimization done (n=39): time 2.765e-06/0.3488, allocations: 0 / 0.4964 GB, free: 9.098 MB / 382.1 MB Notification: Performance of matching and sorting (n=39): time 0.00123/0.35, allocations: 0.5381 MB / 0.497 GB, free: 8.832 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.346e-05/0.3501, allocations: 114.9 kB / 0.4971 GB, free: 8.699 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006104/0.3507, allocations: 0.5481 MB / 0.4976 GB, free: 8.367 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.394e-05/0.3507, allocations: 36.52 kB / 0.4976 GB, free: 8.328 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000196/0.3509, allocations: 382.9 kB / 0.498 GB, free: 7.988 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001107/0.3511, allocations: 156.3 kB / 0.4981 GB, free: 7.852 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001528/0.3512, allocations: 117.1 kB / 0.4983 GB, free: 7.777 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.722e-05/0.3513, allocations: 377.3 kB / 0.4986 GB, free: 7.414 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003887/0.3517, allocations: 178.5 kB / 0.4988 GB, free: 7.328 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005049/0.3522, allocations: 401.3 kB / 0.4992 GB, free: 6.957 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008462/0.3531, allocations: 0.5668 MB / 0.4997 GB, free: 6.508 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.306e-06/0.3531, allocations: 10.25 kB / 0.4997 GB, free: 6.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001192/0.3543, allocations: 0.6508 MB / 0.5004 GB, free: 6.172 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.508e-05/0.3543, allocations: 13.03 kB / 0.5004 GB, free: 6.168 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.435e-05/0.3544, allocations: 14.88 kB / 0.5004 GB, free: 6.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.484e-05/0.3544, allocations: 9.875 kB / 0.5004 GB, free: 6.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005527/0.355, allocations: 138.2 kB / 0.5005 GB, free: 6.129 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.188e-05/0.355, allocations: 14.41 kB / 0.5006 GB, free: 6.125 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004286/0.3554, allocations: 77.98 kB / 0.5006 GB, free: 6.074 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.751e-05/0.3555, allocations: 29.75 kB / 0.5007 GB, free: 6.066 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005256/0.356, allocations: 309.6 kB / 0.501 GB, free: 5.871 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004561/0.3565, allocations: 378.7 kB / 0.5013 GB, free: 5.516 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007904/0.3573, allocations: 0.5567 MB / 0.5019 GB, free: 5.062 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.188e-06/0.3573, allocations: 2.094 kB / 0.5019 GB, free: 5.062 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization_lambda0): time 0.00106/0.3584, allocations: 0.6257 MB / 0.5025 GB, free: 4.746 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.3584, allocations: 9.312 kB / 0.5025 GB, free: 4.746 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/0.3584, allocations: 6.531 kB / 0.5025 GB, free: 4.746 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.3584, allocations: 17.69 kB / 0.5025 GB, free: 4.738 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000462/0.3589, allocations: 135.6 kB / 0.5026 GB, free: 4.707 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.469e-05/0.3589, allocations: 18.11 kB / 0.5026 GB, free: 4.699 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003603/0.3593, allocations: 62.5 kB / 0.5027 GB, free: 4.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.796e-05/0.3593, allocations: 24.59 kB / 0.5027 GB, free: 4.656 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.0001583/0.3595, allocations: 221.8 kB / 0.5029 GB, free: 4.445 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001102/0.3596, allocations: 78.97 kB / 0.503 GB, free: 4.398 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001423/0.3597, allocations: 70.39 kB / 0.5031 GB, free: 4.34 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.805e-06/0.3598, allocations: 4.625 kB / 0.5031 GB, free: 4.34 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.316e-05/0.3598, allocations: 1.25 kB / 0.5031 GB, free: 4.34 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-06/0.3598, allocations: 3.984 kB / 0.5031 GB, free: 4.336 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000719/0.3605, allocations: 0.5674 MB / 0.5036 GB, free: 3.875 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.3605, allocations: 1.562 kB / 0.5036 GB, free: 3.875 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004844/0.361, allocations: 84.77 kB / 0.5037 GB, free: 3.855 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.141e-06/0.361, allocations: 6.219 kB / 0.5037 GB, free: 3.852 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.435e-05/0.3611, allocations: 11.56 kB / 0.5037 GB, free: 3.844 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.148e-06/0.3611, allocations: 6.344 kB / 0.5038 GB, free: 3.84 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3611, allocations: 0 / 0.5038 GB, free: 3.84 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00119/0.3623, allocations: 0.7894 MB / 0.5045 GB, free: 3.344 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001522/0.3625, allocations: 169.5 kB / 0.5047 GB, free: 3.18 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.16e-05/0.3625, allocations: 18.73 kB / 0.5047 GB, free: 3.164 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003244/0.3629, allocations: 30.08 kB / 0.5047 GB, free: 3.148 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.682e-05/0.363, allocations: 29.73 kB / 0.5048 GB, free: 3.133 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.359e-05/0.363, allocations: 13 kB / 0.5048 GB, free: 3.129 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003859/0.3634, allocations: 375.9 kB / 0.5051 GB, free: 2.906 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3634, allocations: 0 / 0.5051 GB, free: 2.906 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000908/0.3643, allocations: 244.1 kB / 0.5054 GB, free: 2.84 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.0001289/0.3644, allocations: 107.9 kB / 0.5055 GB, free: 2.742 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001643/0.3661, allocations: 0.7296 MB / 0.5062 GB, free: 2.43 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.3661, allocations: 0 / 0.5062 GB, free: 2.43 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003927/0.3665, allocations: 201.1 kB / 0.5064 GB, free: 2.34 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001077/0.3676, allocations: 187.8 kB / 0.5065 GB, free: 2.242 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002148/0.3697, allocations: 1.415 MB / 0.5079 GB, free: 1.309 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000296/0.3701, allocations: 0.9081 MB / 0.5088 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003411/0.3704, allocations: 72.66 kB / 0.5089 GB, free: 488 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001288/0.3705, allocations: 49.83 kB / 0.5089 GB, free: 472 kB / 382.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3705, allocations: 0 / 0.5089 GB, free: 472 kB / 382.1 MB Notification: Performance of Templates: time 0.01324/0.3838, allocations: 6.488 MB / 0.5153 GB, free: 12.44 MB / 398.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)