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.009142/0.009142, allocations: 105.4 kB / 15.74 MB, free: 6.488 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.001771/0.001771, allocations: 196.1 kB / 16.68 MB, free: 6.375 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.639/1.639, allocations: 205.1 MB / 222.5 MB, free: 4.504 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.3542/0.3542, 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.001567/0.001567, allocations: 71.84 kB / 435.8 MB, free: 2.484 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3552/0.3568, allocations: 56.88 MB / 492.6 MB, free: 19.49 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.005211/0.3621, allocations: 4.013 MB / 496.7 MB, free: 16.64 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002653/0.3647, allocations: 1.262 MB / 497.9 MB, free: 15.73 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004334/0.3652, allocations: 24 kB / 497.9 MB, free: 15.73 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003534/0.3656, allocations: 125.5 kB / 498.1 MB, free: 15.63 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005903/0.3662, allocations: 172.8 kB / 498.2 MB, free: 15.51 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008474/0.367, allocations: 393.5 kB / 498.6 MB, free: 15.29 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009033/0.368, allocations: 0.8534 MB / 499.5 MB, free: 14.86 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004588/0.3684, allocations: 297.4 kB / 499.8 MB, free: 14.7 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004035/0.3688, allocations: 315.8 kB / 0.4884 GB, free: 14.54 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003553/0.3692, allocations: 326.1 kB / 0.4887 GB, free: 14.35 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001134/0.3693, allocations: 65 kB / 0.4887 GB, free: 14.35 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.763e-05/0.3694, allocations: 66.75 kB / 0.4888 GB, free: 14.35 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001245/0.3696, allocations: 160.1 kB / 0.4889 GB, free: 14.24 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002614/0.3698, allocations: 352.2 kB / 0.4893 GB, free: 14 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008474/0.3707, allocations: 0.7983 MB / 0.4901 GB, free: 13.62 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.3707, allocations: 0 / 0.4901 GB, free: 13.62 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3707, allocations: 3.938 kB / 0.4901 GB, free: 13.62 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.122e-05/0.3707, allocations: 4 kB / 0.4901 GB, free: 13.62 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.001653/0.3724, allocations: 1.058 MB / 0.4911 GB, free: 12.87 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.581e-05/0.3724, allocations: 17.58 kB / 0.4911 GB, free: 12.86 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001239/0.3725, allocations: 91.72 kB / 0.4912 GB, free: 12.82 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007275/0.3733, allocations: 0.5381 MB / 0.4917 GB, free: 12.43 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.391e-05/0.3733, allocations: 49.66 kB / 0.4918 GB, free: 12.41 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.817e-05/0.3734, allocations: 62.41 kB / 0.4918 GB, free: 12.38 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001011/0.3745, allocations: 0.6023 MB / 0.4924 GB, free: 12.04 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.579e-05/0.3745, allocations: 5.766 kB / 0.4924 GB, free: 12.03 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.91e-05/0.3745, allocations: 22.78 kB / 0.4925 GB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.751e-05/0.3746, allocations: 16.66 kB / 0.4925 GB, free: 12.01 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007886/0.3754, allocations: 386.9 kB / 0.4928 GB, free: 11.88 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003519/0.3789, allocations: 2.987 MB / 0.4958 GB, free: 9.543 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009912/0.3799, allocations: 439.8 kB / 0.4962 GB, free: 9.312 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003655/0.3803, allocations: 171.6 kB / 0.4963 GB, free: 9.223 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.411e-05/0.3803, allocations: 3.844 kB / 0.4963 GB, free: 9.223 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.516e-05/0.3804, allocations: 44.75 kB / 0.4964 GB, free: 9.172 MB / 382.1 MB Notification: Performance of pre-optimization done (n=39): time 2.304e-06/0.3804, allocations: 0.9375 kB / 0.4964 GB, free: 9.172 MB / 382.1 MB Notification: Performance of matching and sorting (n=39): time 0.001279/0.3816, allocations: 0.5411 MB / 0.4969 GB, free: 8.902 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.045e-05/0.3817, allocations: 112.4 kB / 0.497 GB, free: 8.773 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000571/0.3823, allocations: 0.5394 MB / 0.4975 GB, free: 8.449 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.529e-05/0.3823, allocations: 36.64 kB / 0.4976 GB, free: 8.41 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000193/0.3825, allocations: 369.5 kB / 0.4979 GB, free: 8.082 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.861e-05/0.3826, allocations: 156 kB / 0.4981 GB, free: 7.945 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001531/0.3828, allocations: 121.7 kB / 0.4982 GB, free: 7.867 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.443e-05/0.3829, allocations: 381.2 kB / 0.4986 GB, free: 7.5 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003823/0.3833, allocations: 181.9 kB / 0.4987 GB, free: 7.41 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004564/0.3837, allocations: 398 kB / 0.4991 GB, free: 7.043 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008276/0.3846, allocations: 0.5701 MB / 0.4997 GB, free: 6.59 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.911e-06/0.3846, allocations: 2.094 kB / 0.4997 GB, free: 6.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001164/0.3858, allocations: 0.6573 MB / 0.5003 GB, free: 6.254 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.614e-05/0.3858, allocations: 11.84 kB / 0.5003 GB, free: 6.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.42e-05/0.3858, allocations: 7.469 kB / 0.5003 GB, free: 6.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.804e-05/0.3859, allocations: 10.81 kB / 0.5003 GB, free: 6.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000546/0.3864, allocations: 141.3 kB / 0.5005 GB, free: 6.215 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.184e-05/0.3864, allocations: 17.86 kB / 0.5005 GB, free: 6.207 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004177/0.3869, allocations: 74.3 kB / 0.5006 GB, free: 6.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.117e-05/0.3869, allocations: 26.66 kB / 0.5006 GB, free: 6.156 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00055/0.3875, allocations: 301.3 kB / 0.5009 GB, free: 5.969 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005256/0.388, allocations: 381.6 kB / 0.5012 GB, free: 5.609 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008653/0.3889, allocations: 0.5574 MB / 0.5018 GB, free: 5.156 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.469e-06/0.3889, allocations: 2.25 kB / 0.5018 GB, free: 5.156 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization_lambda0): time 0.001104/0.39, allocations: 0.6213 MB / 0.5024 GB, free: 4.844 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.992e-05/0.39, allocations: 7.938 kB / 0.5024 GB, free: 4.844 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.3901, allocations: 7.469 kB / 0.5024 GB, free: 4.844 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.3901, allocations: 15.09 kB / 0.5024 GB, free: 4.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005019/0.3906, allocations: 138.2 kB / 0.5026 GB, free: 4.805 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.656e-05/0.3906, allocations: 14.33 kB / 0.5026 GB, free: 4.801 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003826/0.391, allocations: 62.55 kB / 0.5026 GB, free: 4.762 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.21e-05/0.3911, allocations: 30.06 kB / 0.5027 GB, free: 4.754 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.0001772/0.3912, allocations: 218.8 kB / 0.5029 GB, free: 4.547 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001226/0.3914, allocations: 71.31 kB / 0.5029 GB, free: 4.508 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001538/0.3915, allocations: 70.86 kB / 0.503 GB, free: 4.449 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.436e-06/0.3915, allocations: 9.219 kB / 0.503 GB, free: 4.445 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.157e-05/0.3916, allocations: 0 / 0.503 GB, free: 4.445 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.161e-06/0.3916, allocations: 5.297 kB / 0.503 GB, free: 4.441 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00071/0.3923, allocations: 0.5706 MB / 0.5036 GB, free: 3.977 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.3923, allocations: 1.188 kB / 0.5036 GB, free: 3.977 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000479/0.3928, allocations: 84.48 kB / 0.5037 GB, free: 3.957 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.109e-06/0.3928, allocations: 6.406 kB / 0.5037 GB, free: 3.953 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.114e-05/0.3928, allocations: 8.156 kB / 0.5037 GB, free: 3.949 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.3928, allocations: 5.453 kB / 0.5037 GB, free: 3.945 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.3928, allocations: 5.312 kB / 0.5037 GB, free: 3.941 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0012/0.394, allocations: 0.7814 MB / 0.5044 GB, free: 3.453 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001659/0.3942, allocations: 171.3 kB / 0.5046 GB, free: 3.285 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.099e-05/0.3943, allocations: 15.73 kB / 0.5046 GB, free: 3.273 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003337/0.3946, allocations: 26.23 kB / 0.5046 GB, free: 3.262 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.73e-05/0.3947, allocations: 37.62 kB / 0.5047 GB, free: 3.238 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.443e-05/0.3948, allocations: 12.41 kB / 0.5047 GB, free: 3.234 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004094/0.3952, allocations: 375.7 kB / 0.5051 GB, free: 3.012 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3952, allocations: 0 / 0.5051 GB, free: 3.012 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009066/0.3961, allocations: 236.7 kB / 0.5053 GB, free: 2.953 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.000129/0.3962, allocations: 111.8 kB / 0.5054 GB, free: 2.852 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001457/0.3977, allocations: 0.7241 MB / 0.5061 GB, free: 2.543 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.3977, allocations: 1.438 kB / 0.5061 GB, free: 2.543 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003951/0.3981, allocations: 201.1 kB / 0.5063 GB, free: 2.453 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009842/0.3991, allocations: 176.4 kB / 0.5065 GB, free: 2.367 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002157/0.4013, allocations: 1.397 MB / 0.5078 GB, free: 1.453 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003251/0.4016, allocations: 0.9098 MB / 0.5087 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003563/0.402, allocations: 78.05 kB / 0.5088 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001204/0.4021, allocations: 42.3 kB / 0.5088 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of SimCode: time 1.002e-06/0.4021, allocations: 0 / 0.5088 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of Templates: time 0.01364/0.4158, allocations: 6.497 MB / 0.5152 GB, free: 12.55 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)