Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.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.ControlledDCDrives.CurrentControlledDCPM,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM",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.001265/0.001265, allocations: 180.9 kB / 17.01 MB, free: 5.125 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.419/1.419, allocations: 205.4 MB / 223.1 MB, free: 9.121 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.0008568/0.0008567, allocations: 92.17 kB / 271.5 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000279/0.000279, allocations: 11.98 kB / 328.3 MB, free: 15.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2268/0.2271, allocations: 47.57 MB / 375.9 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1275/0.3546, allocations: 115.4 MB / 491.3 MB, free: 13.18 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002916/0.355, allocations: 87.95 kB / 491.4 MB, free: 13.09 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2912/0.6462, allocations: 39.48 MB / 0.5184 GB, free: 98.02 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.6462, allocations: 0 / 0.5184 GB, free: 98.02 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001483/0.6464, allocations: 36.86 kB / 0.5185 GB, free: 98.02 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: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.004218/0.6506, allocations: 1.749 MB / 0.5202 GB, free: 96.75 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/0.6507, allocations: 9.938 kB / 0.5202 GB, free: 96.75 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005163/0.6512, allocations: 214.1 kB / 0.5204 GB, free: 96.58 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001007/0.6522, allocations: 246.2 kB / 0.5206 GB, free: 96.46 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002355/0.6546, allocations: 1.078 MB / 0.5217 GB, free: 95.64 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.907e-05/0.6547, allocations: 109.4 kB / 0.5218 GB, free: 95.59 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002648/0.6549, allocations: 159.6 kB / 0.5219 GB, free: 95.53 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002858/0.6578, allocations: 1.418 MB / 0.5233 GB, free: 94.16 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.212e-05/0.6579, allocations: 4 kB / 0.5233 GB, free: 94.15 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001258/0.658, allocations: 60 kB / 0.5234 GB, free: 94.09 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.751e-05/0.6581, allocations: 36 kB / 0.5234 GB, free: 94.06 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00191/0.66, allocations: 0.9751 MB / 0.5244 GB, free: 93.08 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008017/0.668, allocations: 6.215 MB / 0.5304 GB, free: 86.6 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0012/0.6692, allocations: 0.6734 MB / 0.5311 GB, free: 85.88 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.284e-05/0.6693, allocations: 8.438 kB / 0.5311 GB, free: 85.87 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.328e-05/0.6694, allocations: 38.94 kB / 0.5311 GB, free: 85.82 MB / 378.7 MB Notification: Performance of pre-optimization done (n=51): time 3.356e-06/0.6694, allocations: 4 kB / 0.5311 GB, free: 85.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=54): time 0.003832/0.6732, allocations: 1.758 MB / 0.5329 GB, free: 83.99 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.964e-05/0.6733, allocations: 81.55 kB / 0.5329 GB, free: 83.89 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001535/0.6748, allocations: 0.9537 MB / 0.5339 GB, free: 82.93 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.677e-05/0.6749, allocations: 37.7 kB / 0.5339 GB, free: 82.88 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004188/0.6753, allocations: 0.8123 MB / 0.5347 GB, free: 82.06 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001305/0.6755, allocations: 201.7 kB / 0.5349 GB, free: 81.87 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.047e-05/0.6755, allocations: 20 kB / 0.5349 GB, free: 81.85 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.308e-05/0.6756, allocations: 345.9 kB / 0.5352 GB, free: 81.5 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004144/0.676, allocations: 241.9 kB / 0.5355 GB, free: 81.27 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005496/0.6766, allocations: 0.629 MB / 0.5361 GB, free: 80.46 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005442/0.6771, allocations: 349.9 kB / 0.5364 GB, free: 80.11 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.889e-06/0.6771, allocations: 8 kB / 0.5364 GB, free: 80.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001515/0.6787, allocations: 1.018 MB / 0.5374 GB, free: 79.07 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001067/0.6797, allocations: 5.14 MB / 0.5424 GB, free: 73.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.658e-05/0.6798, allocations: 12 kB / 0.5425 GB, free: 73.53 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001744/0.68, allocations: 48.72 kB / 0.5425 GB, free: 73.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006892/0.6807, allocations: 235.6 kB / 0.5427 GB, free: 73.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007981/0.6815, allocations: 1.296 MB / 0.544 GB, free: 71.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008147/0.6823, allocations: 55.84 kB / 0.544 GB, free: 71.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.761e-05/0.6824, allocations: 48 kB / 0.5441 GB, free: 71.72 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.11e-05/0.6824, allocations: 5.094 kB / 0.5441 GB, free: 71.71 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001116/0.6835, allocations: 0.8187 MB / 0.5449 GB, free: 70.89 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.993e-05/0.6835, allocations: 15.94 kB / 0.5449 GB, free: 70.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.691e-05/0.6836, allocations: 36.84 kB / 0.5449 GB, free: 70.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000595/0.6842, allocations: 219.7 kB / 0.5452 GB, free: 70.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006114/0.6849, allocations: 1.3 MB / 0.5464 GB, free: 69.19 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008122/0.6857, allocations: 40.16 kB / 0.5465 GB, free: 69.15 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.368e-05/0.6858, allocations: 52 kB / 0.5465 GB, free: 69.1 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 2 (currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * 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.0007644/0.6865, allocations: 420.6 kB / 0.5469 GB, free: 68.68 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002205/0.6868, allocations: 114.6 kB / 0.547 GB, free: 68.56 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001072/0.6878, allocations: 0.5752 MB / 0.5476 GB, free: 67.98 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.6878, allocations: 4 kB / 0.5476 GB, free: 67.97 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.6879, allocations: 0 / 0.5476 GB, free: 67.97 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.6879, allocations: 3.984 kB / 0.5476 GB, free: 67.97 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002825/0.6907, allocations: 1.855 MB / 0.5494 GB, free: 66.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.793e-06/0.6907, allocations: 4 kB / 0.5494 GB, free: 66.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004588/0.6912, allocations: 111.8 kB / 0.5495 GB, free: 65.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.99e-05/0.6913, allocations: 24.84 kB / 0.5495 GB, free: 65.9 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.981e-05/0.6913, allocations: 16 kB / 0.5496 GB, free: 65.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006155/0.692, allocations: 1.28 MB / 0.5508 GB, free: 64.47 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.692, allocations: 3.984 kB / 0.5508 GB, free: 64.47 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001229/0.6932, allocations: 1.03 MB / 0.5518 GB, free: 63.36 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000455/0.6937, allocations: 243.6 kB / 0.552 GB, free: 63.11 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001784/0.6939, allocations: 16 kB / 0.5521 GB, free: 63.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005104/0.6944, allocations: 43.92 kB / 0.5521 GB, free: 63.05 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.549e-05/0.6945, allocations: 40.38 kB / 0.5521 GB, free: 63.01 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.725e-05/0.6945, allocations: 16 kB / 0.5522 GB, free: 62.99 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008316/0.6953, allocations: 0.7205 MB / 0.5529 GB, free: 62.27 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.002e-06/0.6953, allocations: 0 / 0.5529 GB, free: 62.27 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001609/0.697, allocations: 0.5038 MB / 0.5534 GB, free: 61.76 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 10 (loadInertia.w,dcpm.la.i,armatureInverter.vDCFilter.y,armatureInverter.iMotFilter.y,armatureInverter.vMotFilter.y,armatureInverter.iDCFilter.y,armatureInverter.idealDcDc.deadTime.y,armatureInverter.idealDcDc.powerController.y,currentController.integrator.y,loadTorque.phi) * 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 (53): * Single equations (assignments): 52 * 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.001919/0.6989, allocations: 2.331 MB / 0.5556 GB, free: 59.39 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001806/0.7007, allocations: 1.262 MB / 0.5569 GB, free: 58.11 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.7007, allocations: 0 / 0.5569 GB, free: 58.11 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004177/0.7011, allocations: 369.4 kB / 0.5572 GB, free: 57.73 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001081/0.7022, allocations: 264.7 kB / 0.5575 GB, free: 57.48 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01163/0.7139, allocations: 16.19 MB / 0.5733 GB, free: 40.75 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007662/0.7147, allocations: 1.204 MB / 0.5745 GB, free: 39.51 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0007849/0.7155, allocations: 157.2 kB / 0.5746 GB, free: 39.36 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000637/0.7161, allocations: 0.5501 MB / 0.5751 GB, free: 38.8 MB / 378.7 MB Notification: Performance of SimCode: time 8.787e-06/0.7162, allocations: 0 / 0.5751 GB, free: 38.8 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04615/0.7623, allocations: 26.87 MB / 0.6014 GB, free: 11.91 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001854/0.7626, allocations: 233 kB / 0.6016 GB, free: 11.67 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.631/3.393, allocations: 4 kB / 0.6016 GB, free: 11.67 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat does not exist to compare? outputFormat=mat