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.001633/0.001633, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001546/0.001546, allocations: 214.4 kB / 18.59 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.433/1.433, allocations: 227.4 MB / 246.8 MB, free: 10.52 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.2272/0.2272, allocations: 46.11 MB / 344.2 MB, free: 11.55 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.002274/0.002274, allocations: 75.5 kB / 417.7 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1137, allocations: 62.46 MB / 480.2 MB, free: 5.133 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.005989/0.1198, allocations: 4.024 MB / 484.2 MB, free: 1.082 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002518/0.1223, allocations: 1.274 MB / 485.5 MB, free: 15.8 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003421/0.1227, allocations: 23.88 kB / 485.5 MB, free: 15.78 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003203/0.123, allocations: 114.7 kB / 485.6 MB, free: 15.67 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005121/0.1235, allocations: 166.5 kB / 485.8 MB, free: 15.5 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008251/0.1244, allocations: 406 kB / 486.2 MB, free: 15.11 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008985/0.1253, allocations: 0.8346 MB / 487 MB, free: 14.27 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004706/0.1258, allocations: 285.1 kB / 487.3 MB, free: 13.98 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004429/0.1262, allocations: 322.6 kB / 487.6 MB, free: 13.66 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003562/0.1266, allocations: 314.2 kB / 487.9 MB, free: 13.36 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001079/0.1267, allocations: 68 kB / 488 MB, free: 13.29 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001315/0.1268, allocations: 72 kB / 488.1 MB, free: 13.22 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001415/0.127, allocations: 163.3 kB / 488.2 MB, free: 13.06 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003024/0.1273, allocations: 349.9 kB / 488.6 MB, free: 12.71 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007613/0.1281, allocations: 0.759 MB / 489.3 MB, free: 11.95 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.1281, allocations: 0 / 489.3 MB, free: 11.95 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1281, allocations: 0 / 489.3 MB, free: 11.95 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.087e-06/0.1281, allocations: 0 / 489.3 MB, free: 11.95 MB / 366.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.001779/0.1299, allocations: 1.067 MB / 490.4 MB, free: 10.84 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/0.1299, allocations: 12.03 kB / 490.4 MB, free: 10.82 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001144/0.1301, allocations: 94.7 kB / 490.5 MB, free: 10.72 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002387/0.1303, allocations: 99.89 kB / 490.6 MB, free: 10.62 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007089/0.131, allocations: 0.507 MB / 491.1 MB, free: 10.07 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.812e-05/0.1311, allocations: 45.69 kB / 491.2 MB, free: 10.03 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.282e-05/0.1312, allocations: 67.84 kB / 491.2 MB, free: 9.961 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001038/0.1322, allocations: 0.6124 MB / 491.8 MB, free: 9.289 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.148e-05/0.1323, allocations: 3.984 kB / 491.8 MB, free: 9.285 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.262e-05/0.1323, allocations: 24 kB / 491.9 MB, free: 9.262 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.408e-05/0.1323, allocations: 12 kB / 491.9 MB, free: 9.25 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008238/0.1332, allocations: 386.2 kB / 492.2 MB, free: 8.871 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004073/0.1373, allocations: 3.005 MB / 495.3 MB, free: 5.727 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00101/0.1383, allocations: 447.8 kB / 495.7 MB, free: 5.27 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003698/0.1387, allocations: 169.6 kB / 495.9 MB, free: 5.098 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.708e-05/0.1387, allocations: 8 kB / 495.9 MB, free: 5.09 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.872e-05/0.1387, allocations: 38.5 kB / 495.9 MB, free: 5.043 MB / 366.1 MB Notification: Performance of pre-optimization done (n=39): time 2.204e-06/0.1388, allocations: 0 / 495.9 MB, free: 5.043 MB / 366.1 MB Notification: Performance of matching and sorting (n=39): time 0.001304/0.1401, allocations: 0.5443 MB / 496.4 MB, free: 4.492 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.664e-05/0.1402, allocations: 132.5 kB / 496.6 MB, free: 4.332 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006744/0.1408, allocations: 0.5509 MB / 497.1 MB, free: 3.77 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.194e-05/0.1409, allocations: 41.64 kB / 497.2 MB, free: 3.723 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003072/0.1412, allocations: 380 kB / 497.5 MB, free: 3.348 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001331/0.1414, allocations: 149.9 kB / 497.7 MB, free: 3.199 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001823/0.1415, allocations: 118.2 kB / 497.8 MB, free: 3.078 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001993/0.1417, allocations: 370.8 kB / 498.2 MB, free: 2.707 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004284/0.1422, allocations: 191.4 kB / 498.3 MB, free: 2.52 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006098/0.1428, allocations: 397.9 kB / 498.7 MB, free: 2.031 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001029/0.1438, allocations: 0.5751 MB / 499.3 MB, free: 1.363 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.7e-06/0.1439, allocations: 4 kB / 499.3 MB, free: 1.359 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001276/0.1451, allocations: 0.6412 MB / 500 MB, free: 0.7109 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.817e-05/0.1452, allocations: 12.03 kB / 500 MB, free: 0.6992 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.1452, allocations: 4 kB / 500 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.486e-05/0.1452, allocations: 15.94 kB / 500 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005507/0.1458, allocations: 143.7 kB / 0.4884 GB, free: 0.5391 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.438e-05/0.1458, allocations: 8 kB / 0.4884 GB, free: 0.5312 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003948/0.1462, allocations: 75.36 kB / 0.4885 GB, free: 468 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.253e-05/0.1462, allocations: 27.94 kB / 0.4885 GB, free: 440 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005457/0.1468, allocations: 313.4 kB / 0.4888 GB, free: 124 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005549/0.1474, allocations: 385.7 kB / 0.4892 GB, free: 15.64 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009068/0.1483, allocations: 0.5561 MB / 0.4897 GB, free: 15 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.493e-06/0.1483, allocations: 4 kB / 0.4897 GB, free: 14.99 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization_lambda0): time 0.001236/0.1495, allocations: 0.6291 MB / 0.4903 GB, free: 14.36 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.1496, allocations: 12.03 kB / 0.4904 GB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.296e-06/0.1496, allocations: 8 kB / 0.4904 GB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.849e-06/0.1496, allocations: 12 kB / 0.4904 GB, free: 14.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004947/0.1501, allocations: 139.7 kB / 0.4905 GB, free: 14.19 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.25e-05/0.1501, allocations: 8 kB / 0.4905 GB, free: 14.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003798/0.1505, allocations: 63.52 kB / 0.4906 GB, free: 14.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.824e-05/0.1506, allocations: 28 kB / 0.4906 GB, free: 14.09 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.0001917/0.1508, allocations: 228.5 kB / 0.4908 GB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001225/0.1509, allocations: 67.09 kB / 0.4909 GB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000143/0.151, allocations: 86.05 kB / 0.491 GB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.012e-06/0.151, allocations: 4 kB / 0.491 GB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.1511, allocations: 0 / 0.491 GB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.169e-06/0.1511, allocations: 0 / 0.491 GB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008172/0.1519, allocations: 0.5596 MB / 0.4915 GB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.013e-06/0.1519, allocations: 0 / 0.4915 GB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004998/0.1524, allocations: 95.88 kB / 0.4916 GB, free: 13 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.1524, allocations: 0 / 0.4916 GB, free: 13 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.953e-05/0.1525, allocations: 15.94 kB / 0.4916 GB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.908e-06/0.1525, allocations: 4 kB / 0.4916 GB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1525, allocations: 0 / 0.4916 GB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00136/0.1538, allocations: 0.7774 MB / 0.4924 GB, free: 12.19 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001985/0.1541, allocations: 168.3 kB / 0.4925 GB, free: 12 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.55e-05/0.1541, allocations: 15.94 kB / 0.4926 GB, free: 11.99 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003571/0.1545, allocations: 31.97 kB / 0.4926 GB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.527e-05/0.1546, allocations: 23.97 kB / 0.4926 GB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.883e-05/0.1546, allocations: 15.98 kB / 0.4926 GB, free: 11.92 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004454/0.1551, allocations: 379.1 kB / 0.493 GB, free: 11.55 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1551, allocations: 0 / 0.493 GB, free: 11.55 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008082/0.1559, allocations: 239.1 kB / 0.4932 GB, free: 11.32 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.001687/0.1576, allocations: 1.332 MB / 0.4945 GB, free: 9.965 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001577/0.1592, allocations: 0.7556 MB / 0.4953 GB, free: 9.211 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.1592, allocations: 4 kB / 0.4953 GB, free: 9.207 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003968/0.1596, allocations: 183.8 kB / 0.4954 GB, free: 9.027 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009591/0.1606, allocations: 186.6 kB / 0.4956 GB, free: 8.852 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00841/0.169, allocations: 5.918 MB / 0.5014 GB, free: 2.66 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005828/0.1696, allocations: 0.9143 MB / 0.5023 GB, free: 1.719 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003897/0.17, allocations: 84.83 kB / 0.5024 GB, free: 1.637 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003435/0.1703, allocations: 243.4 kB / 0.5026 GB, free: 1.398 MB / 382.1 MB Notification: Performance of SimCode: time 5.92e-07/0.1704, allocations: 0 / 0.5026 GB, free: 1.398 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1975/0.3679, allocations: 12.6 MB / 0.5149 GB, free: 39.96 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.104/8.472, allocations: 9.594 kB / 0.5149 GB, free: 39.96 MB / 382.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)