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.00966/0.00966, allocations: 101.7 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.001689/0.00169, allocations: 199.4 kB / 16.67 MB, free: 5.977 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.465/1.465, allocations: 205.1 MB / 222.5 MB, free: 4.535 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.2965/0.2965, allocations: 38 MB / 307.9 MB, free: 9.949 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.001703/0.001703, allocations: 83.83 kB / 433 MB, free: 5.434 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3937/0.3954, allocations: 56.47 MB / 489.5 MB, free: 20.05 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.006234/0.4017, allocations: 3.997 MB / 493.4 MB, free: 17.21 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004644/0.4064, allocations: 1.272 MB / 494.7 MB, free: 16.3 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001108/0.4076, allocations: 24.84 kB / 494.7 MB, free: 16.29 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000545/0.4081, allocations: 118 kB / 494.9 MB, free: 16.2 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009317/0.4091, allocations: 173.2 kB / 495 MB, free: 16.08 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001499/0.4106, allocations: 385.8 kB / 495.4 MB, free: 15.87 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001568/0.4122, allocations: 0.8533 MB / 496.3 MB, free: 15.44 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006581/0.4129, allocations: 292.8 kB / 496.5 MB, free: 15.28 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005595/0.4134, allocations: 315.8 kB / 496.9 MB, free: 15.12 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005192/0.414, allocations: 329.7 kB / 497.2 MB, free: 14.93 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001548/0.4141, allocations: 65.47 kB / 497.2 MB, free: 14.93 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001527/0.4143, allocations: 70.31 kB / 497.3 MB, free: 14.93 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002213/0.4145, allocations: 157 kB / 497.5 MB, free: 14.82 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004632/0.415, allocations: 359.3 kB / 497.8 MB, free: 14.57 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001782/0.4168, allocations: 0.7989 MB / 498.6 MB, free: 14.2 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.466e-06/0.4168, allocations: 0 / 498.6 MB, free: 14.2 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.989e-06/0.4168, allocations: 0.5625 kB / 498.6 MB, free: 14.2 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.43e-05/0.4169, allocations: 0 / 498.6 MB, free: 14.2 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.002307/0.4192, allocations: 1.065 MB / 499.7 MB, free: 13.44 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.248e-05/0.4192, allocations: 13.48 kB / 499.7 MB, free: 13.44 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001586/0.4194, allocations: 96.36 kB / 499.8 MB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009182/0.4203, allocations: 0.5335 MB / 0.4886 GB, free: 13.01 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.954e-05/0.4204, allocations: 45.06 kB / 0.4886 GB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001087/0.4205, allocations: 60.52 kB / 0.4887 GB, free: 12.96 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001145/0.4216, allocations: 0.6145 MB / 0.4893 GB, free: 12.61 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.665e-05/0.4217, allocations: 4.844 kB / 0.4893 GB, free: 12.6 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.313e-05/0.4218, allocations: 21.78 kB / 0.4893 GB, free: 12.59 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.033e-05/0.4218, allocations: 14.16 kB / 0.4893 GB, free: 12.59 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008677/0.4227, allocations: 394.8 kB / 0.4897 GB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005135/0.4278, allocations: 2.98 MB / 0.4926 GB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001222/0.4291, allocations: 441.9 kB / 0.493 GB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004088/0.4295, allocations: 174.5 kB / 0.4932 GB, free: 9.973 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.005e-05/0.4296, allocations: 4.25 kB / 0.4932 GB, free: 9.973 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.211e-05/0.4296, allocations: 41.28 kB / 0.4933 GB, free: 9.926 MB / 382.1 MB Notification: Performance of pre-optimization done (n=39): time 3.166e-06/0.4296, allocations: 0 / 0.4933 GB, free: 9.926 MB / 382.1 MB Notification: Performance of matching and sorting (n=39): time 0.001518/0.4312, allocations: 0.5394 MB / 0.4938 GB, free: 9.711 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.02e-05/0.4312, allocations: 116.1 kB / 0.4939 GB, free: 9.578 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008179/0.4321, allocations: 0.5547 MB / 0.4944 GB, free: 9.32 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.231e-05/0.4321, allocations: 31.08 kB / 0.4945 GB, free: 9.285 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000276/0.4324, allocations: 373.4 kB / 0.4948 GB, free: 8.984 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001387/0.4325, allocations: 145.9 kB / 0.495 GB, free: 8.871 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001786/0.4327, allocations: 114.9 kB / 0.4951 GB, free: 8.809 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.4329, allocations: 379.8 kB / 0.4954 GB, free: 8.465 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004448/0.4333, allocations: 185.6 kB / 0.4956 GB, free: 8.395 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005406/0.4339, allocations: 394.4 kB / 0.496 GB, free: 8.062 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009474/0.4348, allocations: 0.5688 MB / 0.4965 GB, free: 7.637 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.713e-06/0.4349, allocations: 2.438 kB / 0.4965 GB, free: 7.637 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001327/0.4362, allocations: 0.6496 MB / 0.4972 GB, free: 7.359 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.454e-05/0.4362, allocations: 10.31 kB / 0.4972 GB, free: 7.359 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.613e-05/0.4363, allocations: 6.875 kB / 0.4972 GB, free: 7.359 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.377e-05/0.4363, allocations: 10.5 kB / 0.4972 GB, free: 7.359 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006327/0.4369, allocations: 147.7 kB / 0.4973 GB, free: 7.336 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.039e-05/0.437, allocations: 20 kB / 0.4974 GB, free: 7.328 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004934/0.4375, allocations: 80 kB / 0.4974 GB, free: 7.281 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.997e-05/0.4375, allocations: 25.66 kB / 0.4975 GB, free: 7.277 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006194/0.4382, allocations: 306.3 kB / 0.4978 GB, free: 7.105 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005703/0.4387, allocations: 383.6 kB / 0.4981 GB, free: 6.773 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009907/0.4397, allocations: 0.5581 MB / 0.4987 GB, free: 6.34 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.613e-06/0.4398, allocations: 2.469 kB / 0.4987 GB, free: 6.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization_lambda0): time 0.001258/0.441, allocations: 0.6199 MB / 0.4993 GB, free: 6.074 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.059e-05/0.4411, allocations: 8.094 kB / 0.4993 GB, free: 6.074 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.381e-05/0.4411, allocations: 6.391 kB / 0.4993 GB, free: 6.074 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/0.4411, allocations: 10.34 kB / 0.4993 GB, free: 6.074 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005043/0.4416, allocations: 135 kB / 0.4994 GB, free: 6.059 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.689e-05/0.4416, allocations: 16.03 kB / 0.4994 GB, free: 6.055 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004181/0.4421, allocations: 62.91 kB / 0.4995 GB, free: 6.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.454e-05/0.4421, allocations: 32.59 kB / 0.4995 GB, free: 6.008 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.0002501/0.4424, allocations: 223.1 kB / 0.4997 GB, free: 5.797 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001388/0.4425, allocations: 62.84 kB / 0.4998 GB, free: 5.766 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001925/0.4427, allocations: 71.94 kB / 0.4999 GB, free: 5.715 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.185e-06/0.4427, allocations: 8.312 kB / 0.4999 GB, free: 5.711 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.322e-05/0.4428, allocations: 0 / 0.4999 GB, free: 5.711 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.067e-06/0.4428, allocations: 7.219 kB / 0.4999 GB, free: 5.707 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00102/0.4438, allocations: 0.5672 MB / 0.5004 GB, free: 5.363 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.4438, allocations: 1.219 kB / 0.5004 GB, free: 5.363 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005259/0.4443, allocations: 89.67 kB / 0.5005 GB, free: 5.352 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.4444, allocations: 2.531 kB / 0.5005 GB, free: 5.352 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.71e-05/0.4444, allocations: 12.67 kB / 0.5005 GB, free: 5.344 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.512e-06/0.4444, allocations: 6.734 kB / 0.5005 GB, free: 5.34 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.257e-06/0.4444, allocations: 1.156 kB / 0.5005 GB, free: 5.34 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001419/0.4458, allocations: 0.7806 MB / 0.5013 GB, free: 4.887 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002256/0.4461, allocations: 168.9 kB / 0.5015 GB, free: 4.723 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.806e-05/0.4462, allocations: 15.81 kB / 0.5015 GB, free: 4.711 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003373/0.4465, allocations: 30 kB / 0.5015 GB, free: 4.695 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001277/0.4466, allocations: 29.48 kB / 0.5015 GB, free: 4.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.478e-05/0.4467, allocations: 12.41 kB / 0.5016 GB, free: 4.676 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005015/0.4472, allocations: 376 kB / 0.5019 GB, free: 4.453 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4472, allocations: 0 / 0.5019 GB, free: 4.453 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001054/0.4483, allocations: 244.8 kB / 0.5021 GB, free: 4.387 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.0001426/0.4484, allocations: 111.4 kB / 0.5023 GB, free: 4.285 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001684/0.4501, allocations: 0.7241 MB / 0.503 GB, free: 3.977 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.4501, allocations: 1.188 kB / 0.503 GB, free: 3.977 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003859/0.4505, allocations: 200.2 kB / 0.5032 GB, free: 3.887 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001031/0.4515, allocations: 181.5 kB / 0.5033 GB, free: 3.793 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002371/0.4539, allocations: 1.389 MB / 0.5047 GB, free: 2.891 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003719/0.4543, allocations: 0.9133 MB / 0.5056 GB, free: 2.094 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000343/0.4547, allocations: 73.52 kB / 0.5056 GB, free: 2.055 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001209/0.4548, allocations: 40.5 kB / 0.5057 GB, free: 2.047 MB / 382.1 MB Notification: Performance of SimCode: time 5.01e-07/0.4548, allocations: 4 kB / 0.5057 GB, free: 2.043 MB / 382.1 MB Notification: Performance of Templates: time 0.01576/0.4706, allocations: 6.508 MB / 0.512 GB, free: 14.85 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)