Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.UnitDeduction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001869/0.001869, allocations: 121.6 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002102/0.002102, allocations: 199.9 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.635/1.635, allocations: 227.4 MB / 247 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2604/0.2604, allocations: 46.12 MB / 344.3 MB, free: 11.45 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.003782/0.003782, allocations: 79.88 kB / 480.9 MB, free: 4.496 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4123/0.4161, allocations: 62.45 MB / 0.5306 GB, free: 13.37 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.006143/0.4223, allocations: 4.029 MB / 0.5345 GB, free: 10.19 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003141/0.4255, allocations: 1.276 MB / 0.5358 GB, free: 9.145 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005114/0.426, allocations: 24.62 kB / 0.5358 GB, free: 9.137 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000348/0.4264, allocations: 117.4 kB / 0.5359 GB, free: 9.027 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005524/0.427, allocations: 159.9 kB / 0.5361 GB, free: 8.891 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009557/0.428, allocations: 409.9 kB / 0.5365 GB, free: 8.566 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001011/0.429, allocations: 0.8398 MB / 0.5373 GB, free: 8.043 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004934/0.4295, allocations: 285.3 kB / 0.5376 GB, free: 7.871 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005352/0.43, allocations: 321.5 kB / 0.5379 GB, free: 7.664 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004481/0.4305, allocations: 323 kB / 0.5382 GB, free: 7.418 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001277/0.4306, allocations: 65.09 kB / 0.5382 GB, free: 7.418 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001517/0.4308, allocations: 68.75 kB / 0.5383 GB, free: 7.418 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001485/0.4309, allocations: 151.5 kB / 0.5384 GB, free: 7.289 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004195/0.4314, allocations: 359.2 kB / 0.5388 GB, free: 7.012 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001169/0.4325, allocations: 0.8074 MB / 0.5396 GB, free: 6.387 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.4326, allocations: 0 / 0.5396 GB, free: 6.387 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.4326, allocations: 0 / 0.5396 GB, free: 6.387 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.256e-05/0.4326, allocations: 0 / 0.5396 GB, free: 6.387 MB / 398.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.001899/0.4345, allocations: 1.088 MB / 0.5406 GB, free: 5.512 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.907e-05/0.4346, allocations: 9.75 kB / 0.5406 GB, free: 5.512 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001209/0.4347, allocations: 99 kB / 0.5407 GB, free: 5.422 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002578/0.435, allocations: 99.09 kB / 0.5408 GB, free: 5.375 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000885/0.4358, allocations: 0.5462 MB / 0.5414 GB, free: 4.902 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.656e-05/0.4359, allocations: 51.89 kB / 0.5414 GB, free: 4.871 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001024/0.436, allocations: 62.45 kB / 0.5415 GB, free: 4.848 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001077/0.4371, allocations: 0.617 MB / 0.5421 GB, free: 4.395 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.291e-05/0.4371, allocations: 1.031 kB / 0.5421 GB, free: 4.395 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.221e-05/0.4372, allocations: 26.41 kB / 0.5421 GB, free: 4.375 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.617e-05/0.4372, allocations: 14.19 kB / 0.5421 GB, free: 4.375 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008008/0.438, allocations: 380.5 kB / 0.5425 GB, free: 4.199 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00436/0.4424, allocations: 2.985 MB / 0.5454 GB, free: 1.613 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001083/0.4435, allocations: 443.8 kB / 0.5458 GB, free: 1.375 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004099/0.4439, allocations: 171.3 kB / 0.546 GB, free: 1.285 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.159e-05/0.444, allocations: 3.875 kB / 0.546 GB, free: 1.285 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.716e-05/0.444, allocations: 41.36 kB / 0.546 GB, free: 1.238 MB / 398.1 MB Notification: Performance of pre-optimization done (n=39): time 3.156e-06/0.444, allocations: 1.375 kB / 0.546 GB, free: 1.238 MB / 398.1 MB Notification: Performance of matching and sorting (n=39): time 0.001483/0.4455, allocations: 0.5498 MB / 0.5466 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001073/0.4456, allocations: 132.2 kB / 0.5467 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007133/0.4464, allocations: 0.5572 MB / 0.5472 GB, free: 260 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.814e-05/0.4464, allocations: 41.64 kB / 0.5473 GB, free: 212 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003094/0.4468, allocations: 376.8 kB / 0.5476 GB, free: 15.83 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001461/0.4469, allocations: 166.6 kB / 0.5478 GB, free: 15.67 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001788/0.4471, allocations: 114.3 kB / 0.5479 GB, free: 15.55 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002345/0.4473, allocations: 374.8 kB / 0.5483 GB, free: 15.18 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004384/0.4478, allocations: 187.4 kB / 0.5484 GB, free: 14.99 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000763/0.4486, allocations: 401.9 kB / 0.5488 GB, free: 14.5 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001022/0.4496, allocations: 0.5792 MB / 0.5494 GB, free: 13.83 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.4496, allocations: 0 / 0.5494 GB, free: 13.83 MB / 414.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001254/0.4509, allocations: 0.6529 MB / 0.55 GB, free: 13.17 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.176e-05/0.4509, allocations: 8 kB / 0.55 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.703e-05/0.4509, allocations: 11.94 kB / 0.55 GB, free: 13.15 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.672e-05/0.451, allocations: 12 kB / 0.5501 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005724/0.4515, allocations: 135.8 kB / 0.5502 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.589e-05/0.4516, allocations: 15.94 kB / 0.5502 GB, free: 12.99 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004116/0.452, allocations: 75.77 kB / 0.5503 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.938e-05/0.4521, allocations: 31.98 kB / 0.5503 GB, free: 12.88 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005356/0.4526, allocations: 305.3 kB / 0.5506 GB, free: 12.58 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005383/0.4531, allocations: 385.9 kB / 0.551 GB, free: 12.11 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009337/0.4541, allocations: 0.5598 MB / 0.5515 GB, free: 11.45 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.485e-06/0.4541, allocations: 0 / 0.5515 GB, free: 11.45 MB / 414.1 MB Notification: Performance of matching and sorting (n=78) (initialization_lambda0): time 0.001152/0.4553, allocations: 0.6335 MB / 0.5521 GB, free: 10.81 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/0.4553, allocations: 8 kB / 0.5521 GB, free: 10.8 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.13e-05/0.4553, allocations: 12 kB / 0.5521 GB, free: 10.79 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.4553, allocations: 15.94 kB / 0.5522 GB, free: 10.78 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000516/0.4558, allocations: 127.8 kB / 0.5523 GB, free: 10.65 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.644e-05/0.4559, allocations: 15.94 kB / 0.5523 GB, free: 10.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004131/0.4563, allocations: 63.8 kB / 0.5524 GB, free: 10.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.482e-05/0.4563, allocations: 35.98 kB / 0.5524 GB, free: 10.54 MB / 414.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.0002339/0.4566, allocations: 227.5 kB / 0.5526 GB, free: 10.31 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001272/0.4567, allocations: 67.58 kB / 0.5527 GB, free: 10.25 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001685/0.4569, allocations: 74.11 kB / 0.5527 GB, free: 10.17 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.523e-06/0.4569, allocations: 4 kB / 0.5528 GB, free: 10.17 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.081e-05/0.4569, allocations: 4 kB / 0.5528 GB, free: 10.16 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.724e-06/0.4569, allocations: 3.984 kB / 0.5528 GB, free: 10.16 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000917/0.4579, allocations: 0.5713 MB / 0.5533 GB, free: 9.539 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.205e-06/0.4579, allocations: 4 kB / 0.5533 GB, free: 9.535 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004786/0.4584, allocations: 87.88 kB / 0.5534 GB, free: 9.449 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.061e-06/0.4584, allocations: 4 kB / 0.5534 GB, free: 9.445 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.467e-05/0.4584, allocations: 11.94 kB / 0.5534 GB, free: 9.434 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.434e-06/0.4584, allocations: 0 / 0.5534 GB, free: 9.434 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.4584, allocations: 0 / 0.5534 GB, free: 9.434 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001374/0.4598, allocations: 0.7859 MB / 0.5542 GB, free: 8.633 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002179/0.46, allocations: 180.6 kB / 0.5544 GB, free: 8.438 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.305e-05/0.4601, allocations: 15.94 kB / 0.5544 GB, free: 8.422 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003311/0.4605, allocations: 23.97 kB / 0.5544 GB, free: 8.398 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.737e-05/0.4606, allocations: 31.97 kB / 0.5544 GB, free: 8.367 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.74e-05/0.4606, allocations: 11.98 kB / 0.5544 GB, free: 8.355 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005002/0.4611, allocations: 379.1 kB / 0.5548 GB, free: 7.988 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4611, allocations: 0 / 0.5548 GB, free: 7.988 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008621/0.462, allocations: 239.5 kB / 0.555 GB, free: 7.754 MB / 414.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.001809/0.4638, allocations: 1.333 MB / 0.5563 GB, free: 6.395 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001641/0.4654, allocations: 0.7281 MB / 0.557 GB, free: 5.668 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.4655, allocations: 3.938 kB / 0.557 GB, free: 5.664 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003913/0.4658, allocations: 184.7 kB / 0.5572 GB, free: 5.484 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001013/0.4669, allocations: 175.8 kB / 0.5574 GB, free: 5.32 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008811/0.4757, allocations: 5.726 MB / 0.563 GB, free: 15.32 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005928/0.4763, allocations: 0.9104 MB / 0.5639 GB, free: 14.39 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004009/0.4767, allocations: 80.83 kB / 0.5639 GB, free: 14.3 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003623/0.4771, allocations: 247.3 kB / 0.5642 GB, free: 14.06 MB / 430.1 MB Notification: Performance of SimCode: time 8.02e-07/0.4771, allocations: 0 / 0.5642 GB, free: 14.06 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04615/0.5233, allocations: 12.82 MB / 0.5767 GB, free: 1.363 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.615/10.14, allocations: 4.062 kB / 0.5767 GB, free: 1.359 MB / 430.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.UnitDeduction.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.UnitDeduction_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_UnitDeduction.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1)