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.008317/0.008317, allocations: 95.98 kB / 15.73 MB, free: 6.039 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.001434/0.001435, allocations: 200.6 kB / 16.68 MB, free: 5.969 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.583/1.583, 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.1+maint.om/package.mo): time 0.3383/0.3383, allocations: 37.99 MB / 307.9 MB, free: 10.08 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.001429/0.001429, allocations: 64.56 kB / 433 MB, free: 5.449 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3622/0.3637, allocations: 56.48 MB / 489.5 MB, free: 19.92 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.005143/0.3688, allocations: 4.007 MB / 493.5 MB, free: 17.07 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002408/0.3713, allocations: 1.265 MB / 494.7 MB, free: 16.16 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000409/0.3717, allocations: 24.66 kB / 494.7 MB, free: 16.15 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000341/0.3721, allocations: 121.7 kB / 494.9 MB, free: 16.06 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005799/0.3727, allocations: 172.9 kB / 495 MB, free: 15.93 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007751/0.3734, allocations: 390.1 kB / 495.4 MB, free: 15.72 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009744/0.3744, allocations: 0.8495 MB / 496.3 MB, free: 15.3 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005369/0.375, allocations: 296.8 kB / 496.6 MB, free: 15.13 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004627/0.3754, allocations: 319.9 kB / 496.9 MB, free: 14.96 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004224/0.3759, allocations: 330.5 kB / 497.2 MB, free: 14.78 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001257/0.376, allocations: 64.53 kB / 497.3 MB, free: 14.78 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001233/0.3761, allocations: 66.31 kB / 497.3 MB, free: 14.78 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000128/0.3763, allocations: 153.3 kB / 497.5 MB, free: 14.67 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002704/0.3765, allocations: 350.9 kB / 497.8 MB, free: 14.43 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009755/0.3775, allocations: 0.806 MB / 498.6 MB, free: 14.05 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.3775, allocations: 4 kB / 498.6 MB, free: 14.05 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.3776, allocations: 0 / 498.6 MB, free: 14.05 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.145e-05/0.3776, allocations: 1.062 kB / 498.6 MB, free: 14.05 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.001686/0.3793, allocations: 1.084 MB / 499.7 MB, free: 13.28 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.81e-05/0.3793, allocations: 13.48 kB / 499.7 MB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001913/0.3795, allocations: 97.17 kB / 499.8 MB, free: 13.22 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001004/0.3805, allocations: 0.5415 MB / 0.4886 GB, free: 12.84 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.591e-05/0.3806, allocations: 44.25 kB / 0.4887 GB, free: 12.81 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000112/0.3807, allocations: 64.95 kB / 0.4887 GB, free: 12.79 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001213/0.3819, allocations: 0.6095 MB / 0.4893 GB, free: 12.43 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.532e-05/0.382, allocations: 1.5 kB / 0.4893 GB, free: 12.43 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.813e-05/0.382, allocations: 22.16 kB / 0.4893 GB, free: 12.42 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.13e-05/0.3821, allocations: 13.88 kB / 0.4894 GB, free: 12.42 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000763/0.3828, allocations: 394.7 kB / 0.4897 GB, free: 12.28 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00375/0.3866, allocations: 2.989 MB / 0.4927 GB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001037/0.3876, allocations: 453.2 kB / 0.4931 GB, free: 9.859 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004354/0.3881, allocations: 169.3 kB / 0.4933 GB, free: 9.789 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.552e-05/0.3881, allocations: 4.281 kB / 0.4933 GB, free: 9.789 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.544e-05/0.3882, allocations: 37.97 kB / 0.4933 GB, free: 9.746 MB / 382.1 MB Notification: Performance of pre-optimization done (n=39): time 1.824e-06/0.3882, allocations: 0 / 0.4933 GB, free: 9.746 MB / 382.1 MB Notification: Performance of matching and sorting (n=39): time 0.001356/0.3895, allocations: 0.5461 MB / 0.4938 GB, free: 9.527 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.292e-05/0.3896, allocations: 111.2 kB / 0.4939 GB, free: 9.398 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000788/0.3904, allocations: 0.547 MB / 0.4945 GB, free: 9.145 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.545e-05/0.3905, allocations: 36.23 kB / 0.4945 GB, free: 9.105 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002759/0.3907, allocations: 378.8 kB / 0.4949 GB, free: 8.801 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001185/0.3909, allocations: 160.6 kB / 0.495 GB, free: 8.676 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000183/0.3911, allocations: 114.2 kB / 0.4951 GB, free: 8.613 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.3912, allocations: 381.6 kB / 0.4955 GB, free: 8.27 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004405/0.3917, allocations: 181.3 kB / 0.4957 GB, free: 8.203 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006079/0.3923, allocations: 392.4 kB / 0.496 GB, free: 7.871 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00102/0.3933, allocations: 0.5731 MB / 0.4966 GB, free: 7.441 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.554e-06/0.3933, allocations: 10.5 kB / 0.4966 GB, free: 7.434 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001384/0.3947, allocations: 0.6505 MB / 0.4972 GB, free: 7.156 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.878e-05/0.3948, allocations: 8.906 kB / 0.4972 GB, free: 7.156 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.359e-05/0.3948, allocations: 6.844 kB / 0.4973 GB, free: 7.156 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.039e-05/0.3948, allocations: 15 kB / 0.4973 GB, free: 7.152 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006131/0.3955, allocations: 139.2 kB / 0.4974 GB, free: 7.137 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.418e-05/0.3955, allocations: 16.12 kB / 0.4974 GB, free: 7.133 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003988/0.3959, allocations: 78.66 kB / 0.4975 GB, free: 7.086 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.759e-05/0.396, allocations: 26.22 kB / 0.4975 GB, free: 7.082 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005433/0.3965, allocations: 310.1 kB / 0.4978 GB, free: 6.906 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005262/0.397, allocations: 375.8 kB / 0.4982 GB, free: 6.582 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000757/0.3978, allocations: 0.5701 MB / 0.4987 GB, free: 6.137 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.138e-06/0.3978, allocations: 1.656 kB / 0.4987 GB, free: 6.137 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization_lambda0): time 0.001068/0.3989, allocations: 0.6207 MB / 0.4993 GB, free: 5.871 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.547e-05/0.3989, allocations: 10.3 kB / 0.4993 GB, free: 5.871 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.3989, allocations: 5.719 kB / 0.4994 GB, free: 5.871 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.249e-05/0.399, allocations: 15.34 kB / 0.4994 GB, free: 5.867 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004863/0.3994, allocations: 130.7 kB / 0.4995 GB, free: 5.855 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.582e-05/0.3995, allocations: 19.58 kB / 0.4995 GB, free: 5.848 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000343/0.3998, allocations: 62.83 kB / 0.4996 GB, free: 5.812 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.256e-05/0.3999, allocations: 25.78 kB / 0.4996 GB, free: 5.809 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.0001666/0.4, allocations: 221.6 kB / 0.4998 GB, free: 5.598 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001154/0.4002, allocations: 70.95 kB / 0.4999 GB, free: 5.559 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001659/0.4003, allocations: 71.67 kB / 0.4999 GB, free: 5.508 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.545e-05/0.4004, allocations: 9.219 kB / 0.4999 GB, free: 5.504 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.45e-05/0.4004, allocations: 1.562 kB / 0.5 GB, free: 5.504 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.687e-06/0.4004, allocations: 5.859 kB / 0.5 GB, free: 5.5 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009491/0.4013, allocations: 0.571 MB / 0.5005 GB, free: 5.152 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.4014, allocations: 1.156 kB / 0.5005 GB, free: 5.152 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005306/0.4019, allocations: 86.05 kB / 0.5006 GB, free: 5.145 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.4019, allocations: 2.969 kB / 0.5006 GB, free: 5.145 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.839e-05/0.402, allocations: 17.05 kB / 0.5006 GB, free: 5.133 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.478e-06/0.402, allocations: 5.188 kB / 0.5006 GB, free: 5.129 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.402, allocations: 1.25 kB / 0.5006 GB, free: 5.129 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001469/0.4034, allocations: 0.783 MB / 0.5014 GB, free: 4.699 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002054/0.4037, allocations: 170.9 kB / 0.5015 GB, free: 4.547 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.345e-05/0.4037, allocations: 15.31 kB / 0.5016 GB, free: 4.535 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003313/0.4041, allocations: 32.39 kB / 0.5016 GB, free: 4.523 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.657e-05/0.4042, allocations: 29.33 kB / 0.5016 GB, free: 4.516 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.83e-05/0.4042, allocations: 20.39 kB / 0.5016 GB, free: 4.504 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004429/0.4047, allocations: 368.7 kB / 0.502 GB, free: 4.289 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.4047, allocations: 0 / 0.502 GB, free: 4.289 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008544/0.4055, allocations: 248.8 kB / 0.5022 GB, free: 4.219 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.0001261/0.4057, allocations: 110.7 kB / 0.5023 GB, free: 4.117 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001477/0.4072, allocations: 0.7254 MB / 0.503 GB, free: 3.809 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.706e-06/0.4072, allocations: 0 / 0.503 GB, free: 3.809 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004039/0.4076, allocations: 197.2 kB / 0.5032 GB, free: 3.723 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001018/0.4086, allocations: 183.3 kB / 0.5034 GB, free: 3.629 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00219/0.4108, allocations: 1.414 MB / 0.5048 GB, free: 2.699 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004167/0.4112, allocations: 0.9098 MB / 0.5057 GB, free: 1.906 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000363/0.4116, allocations: 76.61 kB / 0.5058 GB, free: 1.863 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001361/0.4118, allocations: 44.44 kB / 0.5058 GB, free: 1.852 MB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.4118, allocations: 0 / 0.5058 GB, free: 1.852 MB / 382.1 MB Notification: Performance of Templates: time 0.01234/0.4241, allocations: 6.495 MB / 0.5121 GB, free: 14.67 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)