Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,fileNamePrefix="Modelica_3_2_3_cpp_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_cpp_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/Complex 3.2.3+maint.om/package.mo): time 0.00155/0.001555, allocations: 186 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.983/1.983, allocations: 205.4 MB / 222.5 MB, free: 9.141 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001147/0.001147, allocations: 91.39 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003989/0.000399, allocations: 8 kB / 327.1 MB, free: 116 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.342/0.3424, allocations: 47.57 MB / 374.6 MB, free: 45.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.167/0.5095, allocations: 98.34 MB / 473 MB, free: 14.38 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003573/0.5099, allocations: 95.94 kB / 473.1 MB, free: 14.28 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1224/0.6323, allocations: 27.6 MB / 0.4889 GB, free: 2.516 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.655e-06/0.6324, allocations: 0 / 0.4889 GB, free: 2.516 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001135/0.6325, allocations: 20 kB / 0.489 GB, free: 2.496 MB / 378.7 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.004152/0.6367, allocations: 1.324 MB / 0.4903 GB, free: 1.117 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.693e-05/0.6367, allocations: 8.031 kB / 0.4903 GB, free: 1.109 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004806/0.6372, allocations: 152.1 kB / 0.4904 GB, free: 0.9531 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001025/0.6383, allocations: 186.4 kB / 0.4906 GB, free: 0.7695 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2849/0.9232, allocations: 0.8537 MB / 0.4914 GB, free: 95.49 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001662/0.9234, allocations: 73.5 kB / 0.4915 GB, free: 95.49 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003875/0.9238, allocations: 101.2 kB / 0.4916 GB, free: 95.49 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003097/0.9269, allocations: 0.9293 MB / 0.4925 GB, free: 95.34 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.798e-05/0.9271, allocations: 6.859 kB / 0.4925 GB, free: 95.34 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001368/0.9272, allocations: 42.56 kB / 0.4925 GB, free: 95.34 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.536e-05/0.9273, allocations: 27.84 kB / 0.4926 GB, free: 95.34 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002279/0.9296, allocations: 0.6225 MB / 0.4932 GB, free: 95.34 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008827/0.9384, allocations: 4.156 MB / 0.4972 GB, free: 93.52 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001685/0.9402, allocations: 384.4 kB / 0.4976 GB, free: 93.48 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.778e-05/0.9403, allocations: 3.25 kB / 0.4976 GB, free: 93.48 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.116e-05/0.9403, allocations: 39.53 kB / 0.4976 GB, free: 93.45 MB / 378.7 MB Notification: Performance of pre-optimization done (n=37): time 3.808e-06/0.9403, allocations: 0 / 0.4976 GB, free: 93.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.004109/0.9445, allocations: 1.296 MB / 0.4989 GB, free: 92.89 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.453e-05/0.9446, allocations: 84.14 kB / 0.499 GB, free: 92.79 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001757/0.9463, allocations: 0.765 MB / 0.4997 GB, free: 92.65 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001097/0.9465, allocations: 31.23 kB / 0.4998 GB, free: 92.62 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004634/0.947, allocations: 0.6003 MB / 0.5003 GB, free: 92.32 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001693/0.9471, allocations: 150.2 kB / 0.5005 GB, free: 92.25 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.846e-05/0.9472, allocations: 14.41 kB / 0.5005 GB, free: 92.25 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.778e-05/0.9473, allocations: 338.4 kB / 0.5008 GB, free: 91.93 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005838/0.9479, allocations: 163.8 kB / 0.501 GB, free: 91.93 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007323/0.9487, allocations: 476.5 kB / 0.5014 GB, free: 91.55 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007386/0.9494, allocations: 242.4 kB / 0.5017 GB, free: 91.54 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.048e-05/0.9494, allocations: 5.406 kB / 0.5017 GB, free: 91.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001924/0.9514, allocations: 0.6683 MB / 0.5023 GB, free: 91.48 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009794/0.9524, allocations: 4.097 MB / 0.5063 GB, free: 87.22 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.892e-05/0.9525, allocations: 10.25 kB / 0.5063 GB, free: 87.22 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003034/0.9528, allocations: 46.27 kB / 0.5064 GB, free: 87.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001231/0.954, allocations: 176.4 kB / 0.5065 GB, free: 87.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001119/0.9552, allocations: 1.29 MB / 0.5078 GB, free: 85.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001185/0.9564, allocations: 35.66 kB / 0.5078 GB, free: 85.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.765e-05/0.9565, allocations: 36.31 kB / 0.5079 GB, free: 85.95 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.426e-05/0.9565, allocations: 4 kB / 0.5079 GB, free: 85.95 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0017/0.9582, allocations: 0.6179 MB / 0.5085 GB, free: 85.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.101e-05/0.9583, allocations: 11.88 kB / 0.5085 GB, free: 85.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001324/0.9585, allocations: 37.7 kB / 0.5085 GB, free: 85.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001041/0.9595, allocations: 173.1 kB / 0.5087 GB, free: 85.87 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009363/0.9605, allocations: 1.284 MB / 0.51 GB, free: 84.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006003/0.9611, allocations: 39.61 kB / 0.51 GB, free: 84.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.602e-05/0.9612, allocations: 35.66 kB / 0.51 GB, free: 84.61 MB / 378.7 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 (91): * Single equations (assignments): 90 * 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.0007927/0.962, allocations: 340.8 kB / 0.5103 GB, free: 84.4 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003054/0.9623, allocations: 97.66 kB / 0.5104 GB, free: 84.35 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001311/0.9636, allocations: 423.1 kB / 0.5108 GB, free: 84.28 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.898e-06/0.9637, allocations: 7.859 kB / 0.5109 GB, free: 84.27 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.922e-06/0.9637, allocations: 0 / 0.5109 GB, free: 84.27 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.947e-06/0.9637, allocations: 3.656 kB / 0.5109 GB, free: 84.27 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003163/0.9669, allocations: 1.328 MB / 0.5122 GB, free: 83.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.895e-06/0.9669, allocations: 4.094 kB / 0.5122 GB, free: 83.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006964/0.9676, allocations: 73.56 kB / 0.5122 GB, free: 83.51 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001471/0.9678, allocations: 24.2 kB / 0.5122 GB, free: 83.5 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.002e-05/0.9679, allocations: 7.875 kB / 0.5123 GB, free: 83.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009615/0.9688, allocations: 1.279 MB / 0.5135 GB, free: 82.19 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.9688, allocations: 0 / 0.5135 GB, free: 82.19 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001755/0.9706, allocations: 0.7885 MB / 0.5143 GB, free: 81.63 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004866/0.9711, allocations: 195.7 kB / 0.5145 GB, free: 81.46 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001645/0.9713, allocations: 18.48 kB / 0.5145 GB, free: 81.45 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006484/0.972, allocations: 22.97 kB / 0.5145 GB, free: 81.45 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.76e-05/0.9721, allocations: 29.42 kB / 0.5145 GB, free: 81.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.296e-05/0.9721, allocations: 15.47 kB / 0.5145 GB, free: 81.43 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001096/0.9732, allocations: 0.5739 MB / 0.5151 GB, free: 81.17 MB / 378.7 MB Notification: Performance of sort global known variables: time 4e-07/0.9733, allocations: 0 / 0.5151 GB, free: 81.17 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001966/0.9752, allocations: 384.5 kB / 0.5155 GB, free: 81.13 MB / 378.7 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.002545/0.9778, allocations: 1.999 MB / 0.5174 GB, free: 79.54 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002402/0.9803, allocations: 0.9646 MB / 0.5184 GB, free: 79.06 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.118e-06/0.9803, allocations: 0.75 kB / 0.5184 GB, free: 79.06 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006323/0.981, allocations: 290 kB / 0.5186 GB, free: 78.88 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001889/0.9829, allocations: 236.3 kB / 0.5189 GB, free: 78.81 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01434/0.9973, allocations: 12.41 MB / 0.531 GB, free: 68.57 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006078/0.9979, allocations: 1.055 MB / 0.532 GB, free: 67.84 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007891/0.9987, allocations: 404.7 kB / 0.5324 GB, free: 67.54 MB / 378.7 MB Notification: Performance of SimCode: time 1.402e-06/0.9988, allocations: 0 / 0.5324 GB, free: 67.54 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.848/3.846, allocations: 21.82 MB / 0.5537 GB, free: 55.78 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat does not exist to compare? outputFormat=mat