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.01171/0.01171, allocations: 101.3 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.001873/0.001874, allocations: 185.3 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.786/1.786, allocations: 205.1 MB / 222.6 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.3845/0.3845, allocations: 37.99 MB / 307.9 MB, free: 10.07 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.001755/0.001755, allocations: 75.84 kB / 433 MB, free: 5.414 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.421/0.4227, allocations: 56.46 MB / 489.4 MB, free: 20 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.005819/0.4286, allocations: 4.011 MB / 493.5 MB, free: 17.15 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002749/0.4314, allocations: 1.266 MB / 494.7 MB, free: 16.24 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004412/0.4319, allocations: 28.72 kB / 494.7 MB, free: 16.23 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003368/0.4322, allocations: 114.2 kB / 494.9 MB, free: 16.15 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005457/0.4328, allocations: 172.3 kB / 495 MB, free: 16.02 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000814/0.4336, allocations: 397.9 kB / 495.4 MB, free: 15.8 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001071/0.4347, allocations: 0.8462 MB / 496.3 MB, free: 15.38 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005518/0.4352, allocations: 297 kB / 496.6 MB, free: 15.22 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005161/0.4358, allocations: 323.7 kB / 496.9 MB, free: 15.05 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004335/0.4362, allocations: 330.5 kB / 497.2 MB, free: 14.87 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001311/0.4363, allocations: 64.53 kB / 497.3 MB, free: 14.87 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001308/0.4365, allocations: 66.19 kB / 497.3 MB, free: 14.87 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001536/0.4366, allocations: 153.9 kB / 497.5 MB, free: 14.76 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003031/0.4369, allocations: 358.3 kB / 497.8 MB, free: 14.51 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001083/0.438, allocations: 0.7982 MB / 498.6 MB, free: 14.14 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.438, allocations: 1.984 kB / 498.6 MB, free: 14.14 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.4381, allocations: 4 kB / 498.6 MB, free: 14.14 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.282e-05/0.4381, allocations: 0 / 498.6 MB, free: 14.14 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.001785/0.4399, allocations: 1.061 MB / 499.7 MB, free: 13.39 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.878e-05/0.4399, allocations: 13.64 kB / 499.7 MB, free: 13.38 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001472/0.4401, allocations: 92.44 kB / 499.8 MB, free: 13.34 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000851/0.4409, allocations: 0.5455 MB / 0.4886 GB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.557e-05/0.441, allocations: 40.09 kB / 0.4886 GB, free: 12.93 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.454e-05/0.4411, allocations: 64.33 kB / 0.4887 GB, free: 12.9 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001023/0.4421, allocations: 0.6091 MB / 0.4893 GB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.403e-05/0.4422, allocations: 10.2 kB / 0.4893 GB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.984e-05/0.4422, allocations: 22.34 kB / 0.4893 GB, free: 12.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.958e-05/0.4422, allocations: 13.97 kB / 0.4893 GB, free: 12.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007884/0.443, allocations: 386.1 kB / 0.4897 GB, free: 12.39 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003615/0.4467, allocations: 2.988 MB / 0.4926 GB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009676/0.4476, allocations: 440.9 kB / 0.4931 GB, free: 9.984 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003464/0.448, allocations: 174.2 kB / 0.4932 GB, free: 9.91 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.871e-05/0.448, allocations: 8.906 kB / 0.4932 GB, free: 9.906 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.257e-05/0.4481, allocations: 37.48 kB / 0.4933 GB, free: 9.863 MB / 382.1 MB Notification: Performance of pre-optimization done (n=39): time 1.563e-06/0.4481, allocations: 0 / 0.4933 GB, free: 9.863 MB / 382.1 MB Notification: Performance of matching and sorting (n=39): time 0.001237/0.4493, allocations: 0.5407 MB / 0.4938 GB, free: 9.648 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.582e-05/0.4494, allocations: 111.4 kB / 0.4939 GB, free: 9.52 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000568/0.45, allocations: 0.5516 MB / 0.4944 GB, free: 9.266 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.172e-05/0.45, allocations: 35.52 kB / 0.4945 GB, free: 9.227 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001918/0.4502, allocations: 367.6 kB / 0.4948 GB, free: 8.93 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001102/0.4503, allocations: 150.5 kB / 0.495 GB, free: 8.812 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001536/0.4505, allocations: 119.6 kB / 0.4951 GB, free: 8.746 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.4506, allocations: 374.7 kB / 0.4954 GB, free: 8.406 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004025/0.451, allocations: 186.1 kB / 0.4956 GB, free: 8.336 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005723/0.4516, allocations: 398.7 kB / 0.496 GB, free: 8 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009911/0.4526, allocations: 0.5645 MB / 0.4965 GB, free: 7.578 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.803e-06/0.4526, allocations: 2.219 kB / 0.4965 GB, free: 7.578 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001344/0.4539, allocations: 0.6544 MB / 0.4972 GB, free: 7.297 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.719e-05/0.454, allocations: 11.75 kB / 0.4972 GB, free: 7.293 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.866e-05/0.454, allocations: 8.078 kB / 0.4972 GB, free: 7.293 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.282e-05/0.454, allocations: 10.41 kB / 0.4972 GB, free: 7.293 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005662/0.4546, allocations: 144 kB / 0.4974 GB, free: 7.273 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.474e-05/0.4546, allocations: 19.25 kB / 0.4974 GB, free: 7.266 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003814/0.455, allocations: 75.14 kB / 0.4974 GB, free: 7.223 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.614e-05/0.4551, allocations: 30.84 kB / 0.4975 GB, free: 7.215 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005305/0.4556, allocations: 301.7 kB / 0.4978 GB, free: 7.047 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005294/0.4562, allocations: 384.2 kB / 0.4981 GB, free: 6.715 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008034/0.457, allocations: 0.5544 MB / 0.4987 GB, free: 6.285 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.628e-06/0.457, allocations: 2.188 kB / 0.4987 GB, free: 6.285 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization_lambda0): time 0.001115/0.4581, allocations: 0.6221 MB / 0.4993 GB, free: 6.016 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.639e-05/0.4581, allocations: 8.625 kB / 0.4993 GB, free: 6.016 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/0.4582, allocations: 6.781 kB / 0.4993 GB, free: 6.016 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.6e-05/0.4582, allocations: 11.75 kB / 0.4993 GB, free: 6.016 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005123/0.4587, allocations: 139 kB / 0.4994 GB, free: 5.996 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.833e-05/0.4587, allocations: 18.92 kB / 0.4995 GB, free: 5.988 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000339/0.4591, allocations: 57.67 kB / 0.4995 GB, free: 5.957 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.053e-05/0.4591, allocations: 26.64 kB / 0.4995 GB, free: 5.953 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.0001235/0.4593, allocations: 222.4 kB / 0.4997 GB, free: 5.742 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001112/0.4594, allocations: 63.98 kB / 0.4998 GB, free: 5.711 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001305/0.4595, allocations: 70.8 kB / 0.4999 GB, free: 5.66 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.144e-06/0.4595, allocations: 13.81 kB / 0.4999 GB, free: 5.652 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.162e-05/0.4595, allocations: 0 / 0.4999 GB, free: 5.652 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.648e-06/0.4596, allocations: 3.625 kB / 0.4999 GB, free: 5.652 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008406/0.4604, allocations: 0.5785 MB / 0.5005 GB, free: 5.297 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.4604, allocations: 1.125 kB / 0.5005 GB, free: 5.297 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004767/0.4609, allocations: 85.84 kB / 0.5005 GB, free: 5.289 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.761e-06/0.4609, allocations: 3.031 kB / 0.5005 GB, free: 5.289 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.225e-05/0.4609, allocations: 8.688 kB / 0.5006 GB, free: 5.285 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.508e-06/0.461, allocations: 5.812 kB / 0.5006 GB, free: 5.281 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.461, allocations: 4 kB / 0.5006 GB, free: 5.277 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001253/0.4622, allocations: 0.7875 MB / 0.5013 GB, free: 4.848 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000172/0.4624, allocations: 171.9 kB / 0.5015 GB, free: 4.684 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.894e-05/0.4625, allocations: 8.406 kB / 0.5015 GB, free: 4.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003181/0.4628, allocations: 26.23 kB / 0.5015 GB, free: 4.668 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.724e-05/0.4629, allocations: 33.08 kB / 0.5016 GB, free: 4.648 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.317e-05/0.4629, allocations: 19.42 kB / 0.5016 GB, free: 4.637 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003726/0.4633, allocations: 372.8 kB / 0.5019 GB, free: 4.418 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4633, allocations: 3.938 kB / 0.5019 GB, free: 4.414 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007962/0.4641, allocations: 244.6 kB / 0.5022 GB, free: 4.348 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.0001082/0.4642, allocations: 111.3 kB / 0.5023 GB, free: 4.246 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001334/0.4656, allocations: 0.7257 MB / 0.503 GB, free: 3.938 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.4656, allocations: 0 / 0.503 GB, free: 3.938 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003445/0.4659, allocations: 197.1 kB / 0.5032 GB, free: 3.852 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009682/0.4669, allocations: 175.2 kB / 0.5033 GB, free: 3.762 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002391/0.4693, allocations: 1.389 MB / 0.5047 GB, free: 2.859 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003851/0.4697, allocations: 0.9097 MB / 0.5056 GB, free: 2.066 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003784/0.4701, allocations: 76.83 kB / 0.5057 GB, free: 2.023 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001268/0.4702, allocations: 44.47 kB / 0.5057 GB, free: 2.012 MB / 382.1 MB Notification: Performance of SimCode: time 5.31e-07/0.4702, allocations: 0 / 0.5057 GB, free: 2.012 MB / 382.1 MB Notification: Performance of Templates: time 0.01403/0.4843, allocations: 6.658 MB / 0.5122 GB, free: 14.7 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)