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.009248/0.009249, allocations: 102.4 kB / 15.73 MB, free: 6.008 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.001709/0.001709, allocations: 198.5 kB / 16.68 MB, free: 5.93 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.832/1.832, 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.1+maint.om/package.mo): time 0.3492/0.3492, allocations: 37.99 MB / 307.9 MB, free: 10.11 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.001455/0.001455, allocations: 71.84 kB / 433 MB, free: 5.43 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.325/0.3265, allocations: 56.47 MB / 489.5 MB, free: 19.93 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.005264/0.3318, allocations: 4.002 MB / 493.5 MB, free: 17.09 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002586/0.3344, allocations: 1.268 MB / 494.7 MB, free: 16.18 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004913/0.3349, allocations: 24.09 kB / 494.7 MB, free: 16.17 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003386/0.3353, allocations: 113.8 kB / 494.9 MB, free: 16.09 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005954/0.3359, allocations: 183.9 kB / 495 MB, free: 15.96 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000907/0.3368, allocations: 398 kB / 495.4 MB, free: 15.74 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001022/0.3379, allocations: 0.8486 MB / 496.3 MB, free: 15.32 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005169/0.3384, allocations: 293.8 kB / 496.6 MB, free: 15.16 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005106/0.3389, allocations: 328.9 kB / 496.9 MB, free: 14.99 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003975/0.3393, allocations: 332.8 kB / 497.2 MB, free: 14.8 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001159/0.3394, allocations: 69.06 kB / 497.3 MB, free: 14.79 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000112/0.3395, allocations: 65.66 kB / 497.3 MB, free: 14.79 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001308/0.3397, allocations: 157.9 kB / 497.5 MB, free: 14.68 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002918/0.34, allocations: 350.9 kB / 497.8 MB, free: 14.44 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009825/0.341, allocations: 0.7992 MB / 498.6 MB, free: 14.07 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.341, allocations: 0 / 498.6 MB, free: 14.07 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.341, allocations: 0 / 498.6 MB, free: 14.07 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.249e-05/0.341, allocations: 0 / 498.6 MB, free: 14.07 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.001846/0.3429, allocations: 1.07 MB / 499.7 MB, free: 13.31 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.989e-05/0.3429, allocations: 12.55 kB / 499.7 MB, free: 13.31 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001606/0.3431, allocations: 90.03 kB / 499.8 MB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009077/0.344, allocations: 0.5404 MB / 0.4886 GB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.003e-05/0.3441, allocations: 44.91 kB / 0.4887 GB, free: 12.86 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001012/0.3442, allocations: 59.53 kB / 0.4887 GB, free: 12.84 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00103/0.3452, allocations: 0.6103 MB / 0.4893 GB, free: 12.48 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.841e-05/0.3452, allocations: 5.531 kB / 0.4893 GB, free: 12.48 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.924e-05/0.3453, allocations: 22.53 kB / 0.4893 GB, free: 12.46 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.978e-05/0.3453, allocations: 13.47 kB / 0.4894 GB, free: 12.46 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008004/0.3461, allocations: 399 kB / 0.4897 GB, free: 12.32 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004223/0.3504, allocations: 2.984 MB / 0.4926 GB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001097/0.3515, allocations: 437.5 kB / 0.4931 GB, free: 9.918 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003643/0.3519, allocations: 177.4 kB / 0.4932 GB, free: 9.84 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.673e-05/0.3519, allocations: 8.766 kB / 0.4932 GB, free: 9.84 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.141e-05/0.352, allocations: 34.56 kB / 0.4933 GB, free: 9.797 MB / 382.1 MB Notification: Performance of pre-optimization done (n=39): time 1.613e-06/0.352, allocations: 0 / 0.4933 GB, free: 9.797 MB / 382.1 MB Notification: Performance of matching and sorting (n=39): time 0.001212/0.3532, allocations: 0.5392 MB / 0.4938 GB, free: 9.582 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.394e-05/0.3532, allocations: 120.2 kB / 0.4939 GB, free: 9.445 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006552/0.3539, allocations: 0.546 MB / 0.4944 GB, free: 9.195 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.873e-05/0.354, allocations: 36.45 kB / 0.4945 GB, free: 9.156 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000254/0.3542, allocations: 368.1 kB / 0.4948 GB, free: 8.859 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001236/0.3544, allocations: 152.2 kB / 0.495 GB, free: 8.742 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001775/0.3545, allocations: 114.2 kB / 0.4951 GB, free: 8.68 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001241/0.3547, allocations: 375.4 kB / 0.4954 GB, free: 8.34 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004064/0.3551, allocations: 185.7 kB / 0.4956 GB, free: 8.27 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005107/0.3556, allocations: 399 kB / 0.496 GB, free: 7.934 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009037/0.3565, allocations: 0.5768 MB / 0.4966 GB, free: 7.5 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.365e-06/0.3565, allocations: 1.766 kB / 0.4966 GB, free: 7.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001329/0.3579, allocations: 0.65 MB / 0.4972 GB, free: 7.223 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.782e-05/0.3579, allocations: 12.77 kB / 0.4972 GB, free: 7.219 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.833e-05/0.3579, allocations: 6.781 kB / 0.4972 GB, free: 7.219 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.978e-05/0.358, allocations: 10.75 kB / 0.4972 GB, free: 7.219 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006192/0.3586, allocations: 139 kB / 0.4974 GB, free: 7.203 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.855e-05/0.3586, allocations: 15.66 kB / 0.4974 GB, free: 7.199 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004269/0.3591, allocations: 83.25 kB / 0.4975 GB, free: 7.148 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.021e-05/0.3591, allocations: 26.88 kB / 0.4975 GB, free: 7.145 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005621/0.3597, allocations: 302 kB / 0.4978 GB, free: 6.977 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004781/0.3602, allocations: 383.8 kB / 0.4981 GB, free: 6.645 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008349/0.361, allocations: 0.5551 MB / 0.4987 GB, free: 6.215 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.518e-06/0.361, allocations: 1.438 kB / 0.4987 GB, free: 6.215 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization_lambda0): time 0.001358/0.3624, allocations: 0.6232 MB / 0.4993 GB, free: 5.945 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.337e-05/0.3624, allocations: 12.5 kB / 0.4993 GB, free: 5.945 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.254e-05/0.3625, allocations: 6.75 kB / 0.4993 GB, free: 5.945 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.095e-05/0.3625, allocations: 10.19 kB / 0.4993 GB, free: 5.945 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005503/0.363, allocations: 135.3 kB / 0.4994 GB, free: 5.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.638e-05/0.3631, allocations: 19.7 kB / 0.4995 GB, free: 5.922 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004088/0.3635, allocations: 58.38 kB / 0.4995 GB, free: 5.891 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.394e-05/0.3636, allocations: 33.62 kB / 0.4996 GB, free: 5.879 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.0002206/0.3638, allocations: 216.8 kB / 0.4998 GB, free: 5.672 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001383/0.3639, allocations: 62.97 kB / 0.4998 GB, free: 5.641 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001676/0.3641, allocations: 76.56 kB / 0.4999 GB, free: 5.586 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.216e-05/0.3641, allocations: 8.812 kB / 0.4999 GB, free: 5.582 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.423e-05/0.3641, allocations: 1.125 kB / 0.4999 GB, free: 5.582 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.755e-06/0.3642, allocations: 1.875 kB / 0.4999 GB, free: 5.582 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001044/0.3652, allocations: 0.5718 MB / 0.5005 GB, free: 5.234 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.135e-06/0.3652, allocations: 5.25 kB / 0.5005 GB, free: 5.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004977/0.3657, allocations: 85.88 kB / 0.5006 GB, free: 5.223 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.619e-06/0.3657, allocations: 1.375 kB / 0.5006 GB, free: 5.223 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.622e-05/0.3658, allocations: 13.95 kB / 0.5006 GB, free: 5.215 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.018e-06/0.3658, allocations: 5.156 kB / 0.5006 GB, free: 5.211 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.065e-06/0.3658, allocations: 1.969 kB / 0.5006 GB, free: 5.211 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001417/0.3672, allocations: 0.7826 MB / 0.5013 GB, free: 4.781 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002009/0.3674, allocations: 170 kB / 0.5015 GB, free: 4.629 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.85e-05/0.3675, allocations: 12.27 kB / 0.5015 GB, free: 4.621 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003287/0.3678, allocations: 32.14 kB / 0.5015 GB, free: 4.609 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001099/0.368, allocations: 32.62 kB / 0.5016 GB, free: 4.602 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.819e-05/0.368, allocations: 8.594 kB / 0.5016 GB, free: 4.602 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004703/0.3685, allocations: 376.8 kB / 0.5019 GB, free: 4.398 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3685, allocations: 0 / 0.5019 GB, free: 4.398 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009591/0.3694, allocations: 245.2 kB / 0.5022 GB, free: 4.332 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.0001206/0.3696, allocations: 110.7 kB / 0.5023 GB, free: 4.23 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001501/0.3711, allocations: 0.7372 MB / 0.503 GB, free: 3.91 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.3711, allocations: 0 / 0.503 GB, free: 3.91 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003921/0.3715, allocations: 193 kB / 0.5032 GB, free: 3.828 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009418/0.3724, allocations: 169.5 kB / 0.5033 GB, free: 3.742 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002561/0.375, allocations: 1.385 MB / 0.5047 GB, free: 2.844 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004523/0.3755, allocations: 0.9131 MB / 0.5056 GB, free: 2.047 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003733/0.3759, allocations: 76.38 kB / 0.5057 GB, free: 2.004 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000145/0.376, allocations: 45.09 kB / 0.5057 GB, free: 1.992 MB / 382.1 MB Notification: Performance of SimCode: time 8.21e-07/0.376, allocations: 0 / 0.5057 GB, free: 1.992 MB / 382.1 MB Notification: Performance of Templates: time 0.01333/0.3894, allocations: 6.508 MB / 0.5121 GB, free: 14.8 MB / 398.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)