Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest_Electrical_Machines_DCPM_SpeedControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled,fileNamePrefix="ModelicaTest_trunk_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.00112/0.00112, 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.001227/0.001227, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.399/1.399, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2119/0.2119, allocations: 46.1 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001449/0.001449, allocations: 75.75 kB / 417.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.1185, allocations: 62.44 MB / 480.1 MB, free: 5.176 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled): time 0.006339/0.1249, allocations: 4.545 MB / 484.7 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003063/0.128, allocations: 1.644 MB / 486.3 MB, free: 14.96 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006686/0.1287, allocations: 19.88 kB / 486.3 MB, free: 14.94 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001002/0.1297, allocations: 298.2 kB / 486.6 MB, free: 14.64 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006954/0.1304, allocations: 170.5 kB / 486.8 MB, free: 14.48 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007423/0.1312, allocations: 263.7 kB / 487.1 MB, free: 14.22 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001235/0.1324, allocations: 0.8382 MB / 487.9 MB, free: 13.38 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006563/0.1331, allocations: 394.2 kB / 488.3 MB, free: 12.97 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005778/0.1337, allocations: 314.7 kB / 488.6 MB, free: 12.66 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004927/0.1342, allocations: 338.3 kB / 488.9 MB, free: 12.33 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001879/0.1344, allocations: 80 kB / 489 MB, free: 12.25 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001592/0.1346, allocations: 80 kB / 489.1 MB, free: 12.18 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001627/0.1347, allocations: 171.3 kB / 489.2 MB, free: 12.01 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004078/0.1352, allocations: 374 kB / 489.6 MB, free: 11.64 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008997/0.1361, allocations: 0.9031 MB / 490.5 MB, free: 10.73 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.211e-06/0.1361, allocations: 0 / 490.5 MB, free: 10.73 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.1361, allocations: 0 / 490.5 MB, free: 10.73 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.442e-05/0.1362, allocations: 0 / 490.5 MB, free: 10.73 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.001847/0.138, allocations: 1.021 MB / 491.5 MB, free: 9.66 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.1381, allocations: 8.031 kB / 491.5 MB, free: 9.652 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001147/0.1382, allocations: 102.7 kB / 491.6 MB, free: 9.543 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000126/0.1383, allocations: 87.91 kB / 491.7 MB, free: 9.457 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006183/0.1389, allocations: 0.4896 MB / 492.2 MB, free: 8.93 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.161e-05/0.139, allocations: 49.69 kB / 492.3 MB, free: 8.883 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.31e-05/0.1391, allocations: 60.38 kB / 492.3 MB, free: 8.824 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009916/0.1401, allocations: 0.5873 MB / 492.9 MB, free: 8.215 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.438e-05/0.1401, allocations: 11.84 kB / 492.9 MB, free: 8.203 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.923e-05/0.1402, allocations: 24 kB / 492.9 MB, free: 8.18 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.563e-05/0.1402, allocations: 20 kB / 493 MB, free: 8.16 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008546/0.1411, allocations: 417 kB / 493.4 MB, free: 7.754 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003041/0.1441, allocations: 2.156 MB / 495.5 MB, free: 5.5 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001128/0.1453, allocations: 0.5591 MB / 496.1 MB, free: 4.898 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003395/0.1456, allocations: 175.3 kB / 496.3 MB, free: 4.727 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.29e-05/0.1456, allocations: 4 kB / 496.3 MB, free: 4.723 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.811e-05/0.1457, allocations: 38.55 kB / 496.3 MB, free: 4.676 MB / 366.1 MB Notification: Performance of pre-optimization done (n=32): time 2.224e-06/0.1457, allocations: 4 kB / 496.3 MB, free: 4.672 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002394/0.1481, allocations: 1.134 MB / 497.4 MB, free: 3.465 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.255e-05/0.1481, allocations: 55.41 kB / 497.5 MB, free: 3.398 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006688/0.1488, allocations: 0.5184 MB / 498 MB, free: 2.875 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.271e-05/0.1489, allocations: 37.64 kB / 498 MB, free: 2.832 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002496/0.1491, allocations: 340.1 kB / 498.4 MB, free: 2.492 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001016/0.1492, allocations: 126.2 kB / 498.5 MB, free: 2.367 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001321/0.1494, allocations: 74.12 kB / 498.6 MB, free: 2.289 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000174/0.1496, allocations: 362.8 kB / 498.9 MB, free: 1.926 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003137/0.1499, allocations: 146.5 kB / 499.1 MB, free: 1.781 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003714/0.1503, allocations: 228.8 kB / 499.3 MB, free: 1.523 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006484/0.1509, allocations: 363.9 kB / 499.6 MB, free: 1.137 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.1509, allocations: 4 kB / 499.6 MB, free: 1.133 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008977/0.1518, allocations: 481.2 kB / 0.4884 GB, free: 0.6523 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/0.1519, allocations: 6.5 kB / 0.4884 GB, free: 0.6484 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.1519, allocations: 4.281 kB / 0.4884 GB, free: 0.6445 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001502/0.152, allocations: 28.84 kB / 0.4884 GB, free: 0.6133 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004119/0.1524, allocations: 95.89 kB / 0.4885 GB, free: 0.5195 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001123/0.1536, allocations: 1.383 MB / 0.4899 GB, free: 15 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002758/0.1539, allocations: 23.98 kB / 0.4899 GB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.533e-05/0.1539, allocations: 20.12 kB / 0.4899 GB, free: 14.96 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003977/0.1543, allocations: 257 kB / 0.4902 GB, free: 14.7 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003097/0.1546, allocations: 202.9 kB / 0.4904 GB, free: 14.47 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004749/0.1551, allocations: 328 kB / 0.4907 GB, free: 14.11 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.186e-06/0.1551, allocations: 3.984 kB / 0.4907 GB, free: 14.11 MB / 382.1 MB Notification: Performance of matching and sorting (n=52) (initialization_lambda0): time 0.0007385/0.1559, allocations: 449.9 kB / 0.4911 GB, free: 13.66 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.109e-05/0.1559, allocations: 11.94 kB / 0.4911 GB, free: 13.65 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.1559, allocations: 4 kB / 0.4911 GB, free: 13.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.769e-05/0.156, allocations: 24.84 kB / 0.4911 GB, free: 13.62 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003527/0.1564, allocations: 96.23 kB / 0.4912 GB, free: 13.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009262/0.1573, allocations: 1.371 MB / 0.4926 GB, free: 12.01 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002282/0.1575, allocations: 19.92 kB / 0.4926 GB, free: 11.99 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.191e-05/0.1576, allocations: 16 kB / 0.4926 GB, free: 11.97 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.0001553/0.1577, allocations: 206 kB / 0.4928 GB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.238e-05/0.1578, allocations: 51.34 kB / 0.4929 GB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001119/0.1579, allocations: 65.28 kB / 0.4929 GB, free: 11.65 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.158, allocations: 8 kB / 0.4929 GB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.158, allocations: 3.938 kB / 0.4929 GB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.158, allocations: 3.984 kB / 0.4929 GB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001646/0.1596, allocations: 1.067 MB / 0.494 GB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.584e-06/0.1596, allocations: 0 / 0.494 GB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003466/0.16, allocations: 67.91 kB / 0.494 GB, free: 10.44 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.187e-05/0.1601, allocations: 24.91 kB / 0.4941 GB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.403e-05/0.1601, allocations: 8 kB / 0.4941 GB, free: 10.4 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009477/0.1611, allocations: 1.382 MB / 0.4954 GB, free: 8.883 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.1611, allocations: 0 / 0.4954 GB, free: 8.883 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001042/0.1621, allocations: 0.6306 MB / 0.496 GB, free: 8.227 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001175/0.1623, allocations: 132.4 kB / 0.4962 GB, free: 8.078 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.664e-05/0.1623, allocations: 12 kB / 0.4962 GB, free: 8.066 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002747/0.1626, allocations: 27.97 kB / 0.4962 GB, free: 8.039 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.674e-05/0.1627, allocations: 23.97 kB / 0.4962 GB, free: 8.016 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.866e-05/0.1627, allocations: 8 kB / 0.4962 GB, free: 8.008 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004313/0.1631, allocations: 362.9 kB / 0.4966 GB, free: 7.656 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1632, allocations: 4 kB / 0.4966 GB, free: 7.652 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006668/0.1638, allocations: 180 kB / 0.4967 GB, free: 7.477 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.001335/0.1652, allocations: 1.175 MB / 0.4979 GB, free: 6.262 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001391/0.1666, allocations: 0.755 MB / 0.4986 GB, free: 5.48 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.1666, allocations: 0 / 0.4986 GB, free: 5.48 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004296/0.167, allocations: 275.5 kB / 0.4989 GB, free: 5.199 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007262/0.1678, allocations: 106.2 kB / 0.499 GB, free: 5.094 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1821/0.3499, allocations: 5.153 MB / 0.504 GB, free: 40.9 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003907/0.3504, allocations: 0.8882 MB / 0.5049 GB, free: 40.2 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003223/0.3507, allocations: 60.34 kB / 0.505 GB, free: 40.2 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002678/0.351, allocations: 228.1 kB / 0.5052 GB, free: 40.19 MB / 382.1 MB Notification: Performance of SimCode: time 6.71e-07/0.351, allocations: 0 / 0.5052 GB, free: 40.19 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03218/0.3832, allocations: 10.88 MB / 0.5158 GB, free: 38.01 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.17/9.553, allocations: 1.406 kB / 0.5158 GB, free: 38.01 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Electrical_Machines_DCPM_SpeedControlled.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe 2>&1)