Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.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.Electrical.Machines.DCPM_SpeedControlled,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_Machines_DCPM_SpeedControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_Machines_DCPM_SpeedControlled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001319/0.001319, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002088/0.002088, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.514/1.514, allocations: 227.4 MB / 246.8 MB, free: 10.5 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.2339/0.2339, allocations: 46.11 MB / 344.2 MB, free: 11.53 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.002306/0.002306, allocations: 77.12 kB / 417.8 MB, free: 19.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1256/0.1279, allocations: 62.46 MB / 480.2 MB, free: 5.105 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled): time 0.006583/0.1345, allocations: 4.542 MB / 484.8 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002863/0.1374, allocations: 1.651 MB / 486.4 MB, free: 14.88 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003321/0.1378, allocations: 15.94 kB / 486.4 MB, free: 14.86 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000785/0.1386, allocations: 302.1 kB / 486.7 MB, free: 14.57 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000353/0.139, allocations: 166.5 kB / 486.9 MB, free: 14.4 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004931/0.1395, allocations: 267.6 kB / 487.1 MB, free: 14.14 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008803/0.1404, allocations: 0.8342 MB / 488 MB, free: 13.3 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005571/0.1409, allocations: 386.2 kB / 488.3 MB, free: 12.91 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004408/0.1414, allocations: 314.7 kB / 488.7 MB, free: 12.6 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000353/0.1418, allocations: 342.3 kB / 489 MB, free: 12.26 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001007/0.1419, allocations: 80 kB / 489.1 MB, free: 12.18 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001052/0.142, allocations: 80 kB / 489.1 MB, free: 12.11 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001447/0.1421, allocations: 175.3 kB / 489.3 MB, free: 11.93 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003035/0.1424, allocations: 370 kB / 489.7 MB, free: 11.57 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008405/0.1433, allocations: 0.8993 MB / 490.6 MB, free: 10.67 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.1433, allocations: 3.938 kB / 490.6 MB, free: 10.66 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1433, allocations: 0 / 490.6 MB, free: 10.66 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.003e-05/0.1433, allocations: 0 / 490.6 MB, free: 10.66 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: 150 * Number of variables: 150 Notification: Performance of Generate backend data structure: time 0.001666/0.145, allocations: 1.025 MB / 491.6 MB, free: 9.586 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.496e-05/0.145, allocations: 8.031 kB / 491.6 MB, free: 9.578 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000127/0.1452, allocations: 106.7 kB / 491.7 MB, free: 9.465 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001391/0.1453, allocations: 87.91 kB / 491.8 MB, free: 9.379 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007071/0.146, allocations: 489.5 kB / 492.3 MB, free: 8.863 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.378e-05/0.1461, allocations: 45.69 kB / 492.3 MB, free: 8.82 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.085e-05/0.1462, allocations: 60.38 kB / 492.4 MB, free: 8.762 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001053/0.1473, allocations: 0.599 MB / 493 MB, free: 8.141 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.531e-05/0.1473, allocations: 3.906 kB / 493 MB, free: 8.137 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.596e-05/0.1474, allocations: 28 kB / 493 MB, free: 8.109 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.798e-05/0.1474, allocations: 12 kB / 493 MB, free: 8.098 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008929/0.1483, allocations: 425 kB / 493.4 MB, free: 7.68 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003382/0.1517, allocations: 2.16 MB / 495.6 MB, free: 5.422 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001186/0.1529, allocations: 0.5555 MB / 496.2 MB, free: 4.82 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003451/0.1532, allocations: 166.8 kB / 496.3 MB, free: 4.656 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.124e-05/0.1533, allocations: 4 kB / 496.3 MB, free: 4.652 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.236e-05/0.1533, allocations: 42.55 kB / 496.4 MB, free: 4.602 MB / 366.1 MB Notification: Performance of pre-optimization done (n=32): time 2.324e-06/0.1533, allocations: 0 / 496.4 MB, free: 4.602 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002518/0.1559, allocations: 1.134 MB / 497.5 MB, free: 3.395 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.261e-05/0.1559, allocations: 59.34 kB / 497.6 MB, free: 3.324 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006608/0.1566, allocations: 0.5184 MB / 498.1 MB, free: 2.801 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.469e-05/0.1566, allocations: 37.7 kB / 498.1 MB, free: 2.758 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002788/0.1569, allocations: 348 kB / 498.5 MB, free: 2.41 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001113/0.157, allocations: 122.2 kB / 498.6 MB, free: 2.289 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001271/0.1572, allocations: 74.12 kB / 498.6 MB, free: 2.211 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001835/0.1574, allocations: 362.8 kB / 499 MB, free: 1.848 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003278/0.1577, allocations: 142.5 kB / 499.1 MB, free: 1.707 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003749/0.1581, allocations: 216.9 kB / 499.4 MB, free: 1.461 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000688/0.1588, allocations: 375.9 kB / 499.7 MB, free: 1.062 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.1588, allocations: 0 / 499.7 MB, free: 1.062 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009184/0.1597, allocations: 485.3 kB / 0.4885 GB, free: 0.5781 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/0.1597, allocations: 4 kB / 0.4885 GB, free: 0.5742 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.255e-06/0.1597, allocations: 4 kB / 0.4885 GB, free: 0.5703 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001417/0.1599, allocations: 24.84 kB / 0.4885 GB, free: 0.543 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004239/0.1603, allocations: 108 kB / 0.4886 GB, free: 448 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001213/0.1616, allocations: 1.38 MB / 0.4899 GB, free: 14.92 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002745/0.1618, allocations: 27.92 kB / 0.49 GB, free: 14.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.899e-05/0.1619, allocations: 16 kB / 0.49 GB, free: 14.88 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004188/0.1623, allocations: 249 kB / 0.4902 GB, free: 14.63 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003031/0.1626, allocations: 207 kB / 0.4904 GB, free: 14.39 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000536/0.1632, allocations: 340 kB / 0.4908 GB, free: 14.02 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.703e-06/0.1632, allocations: 0 / 0.4908 GB, free: 14.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=52) (initialization_lambda0): time 0.0007399/0.1639, allocations: 438.2 kB / 0.4912 GB, free: 13.59 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.1639, allocations: 12.03 kB / 0.4912 GB, free: 13.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.266e-06/0.164, allocations: 0 / 0.4912 GB, free: 13.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.49e-05/0.164, allocations: 28.84 kB / 0.4912 GB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003495/0.1644, allocations: 95.83 kB / 0.4913 GB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001064/0.1655, allocations: 1.368 MB / 0.4926 GB, free: 11.94 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002248/0.1657, allocations: 28.08 kB / 0.4927 GB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.586e-05/0.1657, allocations: 19.98 kB / 0.4927 GB, free: 11.89 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 2 (speedController.integrator.local_reset,currentController.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001729/0.1659, allocations: 202.1 kB / 0.4929 GB, free: 11.69 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.55e-05/0.166, allocations: 51.34 kB / 0.4929 GB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001136/0.1661, allocations: 65.27 kB / 0.493 GB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.1661, allocations: 7.938 kB / 0.493 GB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.528e-06/0.1662, allocations: 3.938 kB / 0.493 GB, free: 11.56 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.1662, allocations: 0 / 0.493 GB, free: 11.56 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001696/0.1679, allocations: 1.063 MB / 0.494 GB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.1679, allocations: 4 kB / 0.494 GB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003559/0.1682, allocations: 71.89 kB / 0.4941 GB, free: 10.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.068e-05/0.1683, allocations: 20.84 kB / 0.4941 GB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.446e-05/0.1684, allocations: 8 kB / 0.4941 GB, free: 10.33 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001081/0.1695, allocations: 1.386 MB / 0.4955 GB, free: 8.805 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.1695, allocations: 4.062 kB / 0.4955 GB, free: 8.801 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001144/0.1706, allocations: 0.6344 MB / 0.4961 GB, free: 8.141 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001266/0.1708, allocations: 132.4 kB / 0.4962 GB, free: 7.992 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.736e-05/0.1708, allocations: 12 kB / 0.4962 GB, free: 7.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002648/0.1711, allocations: 23.97 kB / 0.4963 GB, free: 7.957 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.434e-05/0.1712, allocations: 23.97 kB / 0.4963 GB, free: 7.934 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.949e-05/0.1712, allocations: 12 kB / 0.4963 GB, free: 7.922 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005039/0.1717, allocations: 366.8 kB / 0.4967 GB, free: 7.566 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1717, allocations: 0 / 0.4967 GB, free: 7.566 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006372/0.1724, allocations: 180 kB / 0.4968 GB, free: 7.391 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 7 (dcpm.inductor.i,dcpm.inertia.w,inertiaLoad.phi,deadTime.y,currentController.integrator.y,preFilter.y,speedController.integrator.y) * 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 (32): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001504/0.1739, allocations: 1.17 MB / 0.498 GB, free: 6.184 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001472/0.1754, allocations: 0.7598 MB / 0.4987 GB, free: 5.398 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.135e-06/0.1754, allocations: 0 / 0.4987 GB, free: 5.398 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004665/0.1758, allocations: 278.3 kB / 0.499 GB, free: 5.113 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007215/0.1766, allocations: 111.5 kB / 0.4991 GB, free: 5.012 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2041/0.3807, allocations: 5.14 MB / 0.5041 GB, free: 40.62 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004383/0.3812, allocations: 0.8893 MB / 0.505 GB, free: 39.91 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003638/0.3816, allocations: 64.86 kB / 0.505 GB, free: 39.91 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002673/0.3818, allocations: 229.8 kB / 0.5053 GB, free: 39.9 MB / 382.1 MB Notification: Performance of SimCode: time 1.012e-06/0.3818, allocations: 0 / 0.5053 GB, free: 39.9 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04316/0.425, allocations: 10.89 MB / 0.5159 GB, free: 37.72 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.92/10.34, allocations: 13.48 kB / 0.5159 GB, free: 37.72 MB / 382.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_Machines_DCPM_SpeedControlled.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe 2>&1)