Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.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) 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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009077/0.0009078, allocations: 97.67 kB / 16.95 MB, free: 6.449 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.0009134/0.0009134, allocations: 183.5 kB / 17.84 MB, free: 6.004 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.692/1.692, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.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: Performance of FrontEnd - loaded program: time 0.0004792/0.0004794, allocations: 15.98 kB / 280.9 MB, free: 3.621 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1029, allocations: 47.57 MB / 328.5 MB, free: 3.977 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.008758/0.1117, allocations: 7.164 MB / 335.6 MB, free: 12.77 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00529/0.117, allocations: 2.562 MB / 338.2 MB, free: 10.2 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001488/0.1185, allocations: 31.94 kB / 338.2 MB, free: 10.17 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001687/0.1203, allocations: 445.4 kB / 338.6 MB, free: 9.73 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001515/0.1218, allocations: 357.4 kB / 339 MB, free: 9.379 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007786/0.1226, allocations: 251.6 kB / 339.2 MB, free: 9.133 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001966/0.1246, allocations: 1.343 MB / 340.6 MB, free: 7.781 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008765/0.1255, allocations: 448.4 kB / 341 MB, free: 7.328 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008094/0.1263, allocations: 445.9 kB / 341.5 MB, free: 6.891 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000623/0.1269, allocations: 497.5 kB / 341.9 MB, free: 6.402 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001101/0.127, allocations: 64 kB / 342 MB, free: 6.34 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003152/0.1274, allocations: 99.97 kB / 342.1 MB, free: 6.242 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001703/0.1275, allocations: 191 kB / 342.3 MB, free: 6.055 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002645/0.1278, allocations: 257 kB / 342.5 MB, free: 5.797 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001281/0.1291, allocations: 1.324 MB / 343.9 MB, free: 4.469 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.1291, allocations: 3.938 kB / 343.9 MB, free: 4.465 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1291, allocations: 4 kB / 343.9 MB, free: 4.461 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.79e-05/0.1291, allocations: 0 / 343.9 MB, free: 4.461 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.002331/0.1315, allocations: 1.324 MB / 345.2 MB, free: 3.082 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/0.1315, allocations: 8.031 kB / 345.2 MB, free: 3.074 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001829/0.1317, allocations: 152.1 kB / 345.4 MB, free: 2.918 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005773/0.1323, allocations: 186.3 kB / 345.5 MB, free: 2.734 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001289/0.1336, allocations: 0.7542 MB / 346.3 MB, free: 1.938 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.553e-05/0.1337, allocations: 74 kB / 346.4 MB, free: 1.867 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001522/0.1339, allocations: 99.91 kB / 346.5 MB, free: 1.77 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00176/0.1356, allocations: 0.9536 MB / 347.4 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.566e-05/0.1357, allocations: 4 kB / 347.4 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.079e-05/0.1358, allocations: 40 kB / 347.5 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.175e-05/0.1358, allocations: 24 kB / 347.5 MB, free: 0.707 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00127/0.1371, allocations: 0.6441 MB / 348.1 MB, free: 68 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005493/0.1426, allocations: 4.139 MB / 352.3 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009687/0.1436, allocations: 463.2 kB / 352.7 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002857/0.1439, allocations: 169.4 kB / 352.9 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.157e-05/0.1439, allocations: 7.75 kB / 352.9 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.039e-05/0.144, allocations: 38.5 kB / 352.9 MB, free: 11.02 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.385e-06/0.144, allocations: 0 / 352.9 MB, free: 11.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002459/0.1464, allocations: 1.36 MB / 354.3 MB, free: 9.586 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.176e-05/0.1465, allocations: 110.8 kB / 354.4 MB, free: 9.453 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001125/0.1476, allocations: 0.8824 MB / 355.3 MB, free: 8.547 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.983e-05/0.1477, allocations: 37.7 kB / 355.3 MB, free: 8.504 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004161/0.1481, allocations: 0.5954 MB / 355.9 MB, free: 7.898 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001236/0.1482, allocations: 141.9 kB / 356 MB, free: 7.758 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.617e-05/0.1483, allocations: 12 kB / 356.1 MB, free: 7.746 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.1484, allocations: 337.9 kB / 356.4 MB, free: 7.41 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003069/0.1487, allocations: 169.9 kB / 356.6 MB, free: 7.246 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005241/0.1493, allocations: 0.4938 MB / 357 MB, free: 6.605 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003943/0.1497, allocations: 239.7 kB / 357.3 MB, free: 6.371 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/0.1497, allocations: 4 kB / 357.3 MB, free: 6.367 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001132/0.1508, allocations: 0.7507 MB / 358 MB, free: 5.605 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002804/0.1511, allocations: 400.9 kB / 358.4 MB, free: 5.066 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.91e-05/0.1511, allocations: 12 kB / 358.4 MB, free: 5.055 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000178/0.1513, allocations: 36.8 kB / 358.5 MB, free: 5.016 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005387/0.1519, allocations: 175.7 kB / 358.6 MB, free: 4.844 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001007/0.1529, allocations: 1.288 MB / 359.9 MB, free: 3.418 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006415/0.1536, allocations: 39.89 kB / 360 MB, free: 3.379 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.023e-05/0.1536, allocations: 40.11 kB / 360 MB, free: 3.34 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.899e-06/0.1536, allocations: 8 kB / 360 MB, free: 3.332 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009561/0.1546, allocations: 0.6137 MB / 360.6 MB, free: 2.715 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.103e-05/0.1546, allocations: 12 kB / 360.6 MB, free: 2.703 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.151e-05/0.1547, allocations: 36.84 kB / 360.7 MB, free: 2.664 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004934/0.1552, allocations: 163.7 kB / 360.8 MB, free: 2.504 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001261/0.1565, allocations: 1.292 MB / 362.1 MB, free: 1.082 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004923/0.157, allocations: 39.89 kB / 362.2 MB, free: 1.043 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.928e-05/0.1571, allocations: 32 kB / 362.2 MB, free: 1.012 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000534/0.1576, allocations: 344.9 kB / 362.5 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001324/0.1577, allocations: 94.88 kB / 362.6 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008031/0.1585, allocations: 447.2 kB / 363.1 MB, free: 124 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.412e-05/0.1586, allocations: 4 kB / 363.1 MB, free: 120 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.1586, allocations: 4 kB / 363.1 MB, free: 116 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/0.1586, allocations: 4.031 kB / 363.1 MB, free: 112 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002183/0.1608, allocations: 1.398 MB / 364.5 MB, free: 14.63 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.721e-06/0.1608, allocations: 4 kB / 364.5 MB, free: 14.63 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003284/0.1611, allocations: 75.84 kB / 364.6 MB, free: 14.55 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.341e-05/0.1612, allocations: 24.84 kB / 364.6 MB, free: 14.53 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.956e-05/0.1613, allocations: 12 kB / 364.6 MB, free: 14.52 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009531/0.1622, allocations: 1.272 MB / 365.9 MB, free: 13.11 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.1622, allocations: 0 / 365.9 MB, free: 13.11 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001109/0.1634, allocations: 0.7293 MB / 366.6 MB, free: 12.34 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003004/0.1637, allocations: 204 kB / 366.8 MB, free: 12.12 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.202e-05/0.1638, allocations: 8.125 kB / 366.8 MB, free: 12.12 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003579/0.1641, allocations: 35.98 kB / 366.8 MB, free: 12.08 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.778e-05/0.1642, allocations: 27.91 kB / 366.9 MB, free: 12.05 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.901e-05/0.1643, allocations: 19.94 kB / 366.9 MB, free: 12.04 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008752/0.1651, allocations: 0.6016 MB / 367.5 MB, free: 11.42 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1652, allocations: 0 / 367.5 MB, free: 11.42 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001145/0.1663, allocations: 352 kB / 367.8 MB, free: 11.08 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.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 (39): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00144/0.1678, allocations: 1.296 MB / 369.1 MB, free: 9.727 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001788/0.1696, allocations: 0.9673 MB / 370.1 MB, free: 8.738 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.1696, allocations: 4 kB / 370.1 MB, free: 8.734 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000437/0.17, allocations: 290.4 kB / 370.4 MB, free: 8.438 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001106/0.1711, allocations: 232.1 kB / 370.6 MB, free: 8.211 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009594/0.1807, allocations: 5.605 MB / 376.2 MB, free: 2.25 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006058/0.1814, allocations: 1.025 MB / 377.2 MB, free: 1.195 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000634/0.182, allocations: 127.4 kB / 377.4 MB, free: 1.066 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004923/0.1825, allocations: 395.3 kB / 377.7 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of SimCode: time 1.994e-06/0.1825, allocations: 0 / 377.7 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.224/0.4066, allocations: 18.3 MB / 396.1 MB, free: 43.98 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001608/0.4068, allocations: 237.5 kB / 396.3 MB, free: 43.73 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.47/2.876, allocations: 0 / 396.3 MB, free: 43.73 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat does not exist to compare? outputFormat=mat