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.006249/0.006248, allocations: 100.6 kB / 15.73 MB, free: 6.469 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.001169/0.001169, allocations: 193.5 kB / 16.67 MB, free: 6.379 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.552/1.552, 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.3364/0.3364, allocations: 39.95 MB / 309.8 MB, free: 9.297 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.001633/0.001633, allocations: 67.91 kB / 435.8 MB, free: 2.477 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3141/0.3158, allocations: 56.88 MB / 492.6 MB, free: 19.38 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.004749/0.3206, allocations: 4.006 MB / 496.7 MB, free: 16.54 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002527/0.3231, allocations: 1.268 MB / 497.9 MB, free: 15.63 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004595/0.3236, allocations: 23.88 kB / 497.9 MB, free: 15.62 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003123/0.324, allocations: 122.3 kB / 498.1 MB, free: 15.53 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005009/0.3245, allocations: 168.7 kB / 498.2 MB, free: 15.41 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000766/0.3253, allocations: 396.9 kB / 498.6 MB, free: 15.19 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008067/0.3261, allocations: 0.8584 MB / 499.5 MB, free: 14.76 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000409/0.3265, allocations: 289.5 kB / 499.8 MB, free: 14.6 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003839/0.3269, allocations: 332.6 kB / 0.4884 GB, free: 14.43 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003225/0.3272, allocations: 324.9 kB / 0.4887 GB, free: 14.25 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.243e-05/0.3273, allocations: 65.5 kB / 0.4887 GB, free: 14.25 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001059/0.3274, allocations: 70.62 kB / 0.4888 GB, free: 14.24 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001044/0.3275, allocations: 151.6 kB / 0.4889 GB, free: 14.14 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002279/0.3278, allocations: 355.5 kB / 0.4893 GB, free: 13.89 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007781/0.3286, allocations: 0.8029 MB / 0.4901 GB, free: 13.52 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.3286, allocations: 0 / 0.4901 GB, free: 13.52 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.3286, allocations: 0 / 0.4901 GB, free: 13.52 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.999e-06/0.3286, allocations: 8.938 kB / 0.4901 GB, free: 13.51 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.001476/0.3301, allocations: 1.057 MB / 0.4911 GB, free: 12.76 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.415e-05/0.3301, allocations: 13.27 kB / 0.4911 GB, free: 12.76 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001255/0.3302, allocations: 92.78 kB / 0.4912 GB, free: 12.71 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007983/0.3311, allocations: 0.5377 MB / 0.4917 GB, free: 12.33 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.016e-05/0.3311, allocations: 48.25 kB / 0.4918 GB, free: 12.3 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.267e-05/0.3312, allocations: 63.81 kB / 0.4918 GB, free: 12.28 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009875/0.3322, allocations: 0.6017 MB / 0.4924 GB, free: 11.93 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.438e-05/0.3322, allocations: 5.938 kB / 0.4924 GB, free: 11.93 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.809e-05/0.3323, allocations: 30.81 kB / 0.4925 GB, free: 11.9 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.044e-05/0.3323, allocations: 17.73 kB / 0.4925 GB, free: 11.9 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007553/0.3331, allocations: 382.5 kB / 0.4928 GB, free: 11.77 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00372/0.3368, allocations: 2.988 MB / 0.4958 GB, free: 9.477 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009592/0.3378, allocations: 442.7 kB / 0.4962 GB, free: 9.246 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003456/0.3381, allocations: 167.5 kB / 0.4963 GB, free: 9.16 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.327e-05/0.3382, allocations: 3.406 kB / 0.4964 GB, free: 9.16 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.94e-05/0.3382, allocations: 46 kB / 0.4964 GB, free: 9.109 MB / 382.1 MB Notification: Performance of pre-optimization done (n=39): time 1.873e-06/0.3382, allocations: 0 / 0.4964 GB, free: 9.109 MB / 382.1 MB Notification: Performance of matching and sorting (n=39): time 0.001375/0.3396, allocations: 0.5447 MB / 0.4969 GB, free: 8.836 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.913e-05/0.3397, allocations: 108.3 kB / 0.497 GB, free: 8.711 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005706/0.3403, allocations: 0.5441 MB / 0.4976 GB, free: 8.383 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.928e-05/0.3403, allocations: 31.17 kB / 0.4976 GB, free: 8.348 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001876/0.3405, allocations: 375.1 kB / 0.4979 GB, free: 8.016 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.471e-05/0.3406, allocations: 155.8 kB / 0.4981 GB, free: 7.879 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001444/0.3407, allocations: 116.1 kB / 0.4982 GB, free: 7.805 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.851e-05/0.3408, allocations: 382.6 kB / 0.4986 GB, free: 7.438 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003592/0.3412, allocations: 182.4 kB / 0.4987 GB, free: 7.348 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004338/0.3417, allocations: 393 kB / 0.4991 GB, free: 6.984 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007838/0.3424, allocations: 0.5698 MB / 0.4997 GB, free: 6.531 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.3425, allocations: 6.812 kB / 0.4997 GB, free: 6.527 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001196/0.3437, allocations: 0.6458 MB / 0.5003 GB, free: 6.203 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.463e-05/0.3437, allocations: 12.72 kB / 0.5003 GB, free: 6.199 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.307e-05/0.3437, allocations: 6.625 kB / 0.5003 GB, free: 6.199 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.627e-05/0.3437, allocations: 14.47 kB / 0.5003 GB, free: 6.195 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005407/0.3443, allocations: 150.7 kB / 0.5005 GB, free: 6.152 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.7e-05/0.3443, allocations: 14.19 kB / 0.5005 GB, free: 6.148 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003869/0.3447, allocations: 77.06 kB / 0.5006 GB, free: 6.098 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.235e-05/0.3448, allocations: 26.75 kB / 0.5006 GB, free: 6.094 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004446/0.3452, allocations: 305.4 kB / 0.5009 GB, free: 5.902 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003905/0.3456, allocations: 378.1 kB / 0.5013 GB, free: 5.547 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007044/0.3463, allocations: 0.5577 MB / 0.5018 GB, free: 5.094 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.406e-06/0.3463, allocations: 1.219 kB / 0.5018 GB, free: 5.094 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization_lambda0): time 0.0009739/0.3473, allocations: 0.6213 MB / 0.5024 GB, free: 4.781 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.3473, allocations: 8.312 kB / 0.5024 GB, free: 4.781 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/0.3474, allocations: 7.344 kB / 0.5024 GB, free: 4.781 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.3474, allocations: 14.41 kB / 0.5024 GB, free: 4.777 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004977/0.3479, allocations: 140 kB / 0.5026 GB, free: 4.742 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.312e-05/0.3479, allocations: 13.84 kB / 0.5026 GB, free: 4.738 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003503/0.3483, allocations: 61.52 kB / 0.5026 GB, free: 4.699 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.722e-05/0.3483, allocations: 26.06 kB / 0.5027 GB, free: 4.695 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.0001412/0.3484, allocations: 223.6 kB / 0.5029 GB, free: 4.484 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001069/0.3486, allocations: 71.59 kB / 0.5029 GB, free: 4.445 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001246/0.3487, allocations: 70.52 kB / 0.503 GB, free: 4.387 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.294e-06/0.3487, allocations: 9 kB / 0.503 GB, free: 4.383 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.228e-05/0.3487, allocations: 1.5 kB / 0.503 GB, free: 4.383 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.3487, allocations: 3.984 kB / 0.503 GB, free: 4.379 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007183/0.3495, allocations: 0.5672 MB / 0.5036 GB, free: 3.918 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.3495, allocations: 5.859 kB / 0.5036 GB, free: 3.914 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000472/0.3499, allocations: 83.27 kB / 0.5037 GB, free: 3.895 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.881e-06/0.35, allocations: 7.312 kB / 0.5037 GB, free: 3.891 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.43e-05/0.35, allocations: 11.25 kB / 0.5037 GB, free: 3.883 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.35, allocations: 1.281 kB / 0.5037 GB, free: 3.883 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.222e-06/0.35, allocations: 13.33 kB / 0.5037 GB, free: 3.871 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001304/0.3513, allocations: 0.7774 MB / 0.5045 GB, free: 3.387 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002066/0.3515, allocations: 176.5 kB / 0.5046 GB, free: 3.215 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.14e-05/0.3516, allocations: 14.84 kB / 0.5046 GB, free: 3.203 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003271/0.352, allocations: 26.72 kB / 0.5047 GB, free: 3.191 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001057/0.3521, allocations: 29.39 kB / 0.5047 GB, free: 3.176 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.651e-05/0.3521, allocations: 15.38 kB / 0.5047 GB, free: 3.168 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004497/0.3526, allocations: 376.6 kB / 0.5051 GB, free: 2.945 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.3526, allocations: 1.062 kB / 0.5051 GB, free: 2.945 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009119/0.3535, allocations: 236.1 kB / 0.5053 GB, free: 2.887 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.000154/0.3536, allocations: 107 kB / 0.5054 GB, free: 2.789 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001527/0.3552, allocations: 0.7246 MB / 0.5061 GB, free: 2.48 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.3552, allocations: 0 / 0.5061 GB, free: 2.48 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003804/0.3556, allocations: 202.6 kB / 0.5063 GB, free: 2.391 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009788/0.3566, allocations: 172.3 kB / 0.5065 GB, free: 2.301 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002335/0.3589, allocations: 1.397 MB / 0.5078 GB, free: 1.387 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000466/0.3594, allocations: 0.9091 MB / 0.5087 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003595/0.3598, allocations: 73.28 kB / 0.5088 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001471/0.3599, allocations: 41.66 kB / 0.5088 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of SimCode: time 9.62e-07/0.3599, allocations: 0 / 0.5088 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of Templates: time 0.01615/0.3761, allocations: 6.658 MB / 0.5153 GB, free: 12.38 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)