Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001532/0.001532, allocations: 185.4 kB / 16.4 MB, free: 5.746 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.941/1.941, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001786/0.001786, allocations: 90.86 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003781/0.0003782, allocations: 12 kB / 327.1 MB, free: 92 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3424/0.3428, allocations: 47.56 MB / 374.6 MB, free: 45.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1887/0.5316, allocations: 115.4 MB / 490 MB, free: 13.27 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003732/0.532, allocations: 91.94 kB / 490.1 MB, free: 13.18 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.434/0.966, allocations: 39.48 MB / 0.5172 GB, free: 97.93 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.915e-06/0.9661, allocations: 0 / 0.5172 GB, free: 97.93 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001467/0.9662, allocations: 37.28 kB / 0.5172 GB, free: 97.93 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.005787/0.972, allocations: 1.738 MB / 0.5189 GB, free: 96.67 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.293e-05/0.9721, allocations: 9.312 kB / 0.5189 GB, free: 96.67 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007591/0.9729, allocations: 215.3 kB / 0.5191 GB, free: 96.49 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001167/0.9741, allocations: 250.1 kB / 0.5194 GB, free: 96.38 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003481/0.9776, allocations: 1.079 MB / 0.5204 GB, free: 95.55 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001078/0.9777, allocations: 114.5 kB / 0.5205 GB, free: 95.49 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003568/0.9781, allocations: 155.9 kB / 0.5207 GB, free: 95.44 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004102/0.9822, allocations: 1.412 MB / 0.5221 GB, free: 94.27 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-05/0.9824, allocations: 4 kB / 0.5221 GB, free: 94.27 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001917/0.9826, allocations: 68 kB / 0.5221 GB, free: 94.2 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.284e-05/0.9826, allocations: 40 kB / 0.5222 GB, free: 94.16 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003772/0.9864, allocations: 0.9712 MB / 0.5231 GB, free: 93.18 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01299/0.9994, allocations: 6.209 MB / 0.5292 GB, free: 86.71 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001871/1.001, allocations: 0.6815 MB / 0.5299 GB, free: 85.98 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.775e-05/1.001, allocations: 7.641 kB / 0.5299 GB, free: 85.98 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.275e-05/1.002, allocations: 46.94 kB / 0.5299 GB, free: 85.92 MB / 378.7 MB Notification: Performance of pre-optimization done (n=51): time 3.787e-06/1.002, allocations: 0 / 0.5299 GB, free: 85.92 MB / 378.7 MB Notification: Performance of matching and sorting (n=54): time 0.005096/1.007, allocations: 1.747 MB / 0.5316 GB, free: 84.1 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.987e-05/1.007, allocations: 85.55 kB / 0.5317 GB, free: 84 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002065/1.009, allocations: 0.9537 MB / 0.5326 GB, free: 83.03 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001371/1.009, allocations: 33.7 kB / 0.5327 GB, free: 82.99 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005234/1.01, allocations: 0.8055 MB / 0.5334 GB, free: 82.18 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002049/1.01, allocations: 200.7 kB / 0.5336 GB, free: 81.99 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.413e-05/1.01, allocations: 20 kB / 0.5337 GB, free: 81.97 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.874e-05/1.01, allocations: 346.8 kB / 0.534 GB, free: 81.62 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007805/1.011, allocations: 245.8 kB / 0.5342 GB, free: 81.38 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009216/1.012, allocations: 0.629 MB / 0.5348 GB, free: 80.57 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000979/1.013, allocations: 350 kB / 0.5352 GB, free: 80.23 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.077e-06/1.013, allocations: 4 kB / 0.5352 GB, free: 80.22 MB / 378.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002465/1.015, allocations: 0.9373 MB / 0.5361 GB, free: 79.27 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001243/1.016, allocations: 5.134 MB / 0.5411 GB, free: 73.74 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.925e-05/1.017, allocations: 20 kB / 0.5411 GB, free: 73.72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003327/1.017, allocations: 40.84 kB / 0.5412 GB, free: 73.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001538/1.018, allocations: 239.5 kB / 0.5414 GB, free: 73.44 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001083/1.02, allocations: 1.303 MB / 0.5427 GB, free: 72.01 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00146/1.021, allocations: 60.12 kB / 0.5427 GB, free: 71.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001079/1.021, allocations: 48 kB / 0.5428 GB, free: 71.9 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.415e-05/1.021, allocations: 0.9375 kB / 0.5428 GB, free: 71.9 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001964/1.023, allocations: 0.815 MB / 0.5436 GB, free: 71.08 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.414e-05/1.023, allocations: 12 kB / 0.5436 GB, free: 71.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001417/1.023, allocations: 48.81 kB / 0.5436 GB, free: 71.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001351/1.025, allocations: 215.7 kB / 0.5438 GB, free: 70.81 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009369/1.026, allocations: 1.299 MB / 0.5451 GB, free: 69.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007011/1.026, allocations: 35.98 kB / 0.5451 GB, free: 69.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.055e-05/1.027, allocations: 44 kB / 0.5452 GB, free: 69.3 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.0009873/1.028, allocations: 416.6 kB / 0.5456 GB, free: 68.88 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003554/1.028, allocations: 118.6 kB / 0.5457 GB, free: 68.76 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001662/1.03, allocations: 0.5754 MB / 0.5462 GB, free: 68.18 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.606e-06/1.03, allocations: 4 kB / 0.5462 GB, free: 68.17 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/1.03, allocations: 4 kB / 0.5463 GB, free: 68.17 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.025e-05/1.03, allocations: 7.984 kB / 0.5463 GB, free: 68.16 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004222/1.034, allocations: 1.851 MB / 0.5481 GB, free: 66.24 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/1.034, allocations: 4 kB / 0.5481 GB, free: 66.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009415/1.035, allocations: 112 kB / 0.5482 GB, free: 66.12 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001417/1.035, allocations: 20.84 kB / 0.5482 GB, free: 66.1 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.079e-05/1.035, allocations: 16 kB / 0.5482 GB, free: 66.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009404/1.036, allocations: 1.288 MB / 0.5495 GB, free: 64.67 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/1.036, allocations: 4.031 kB / 0.5495 GB, free: 64.66 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002373/1.039, allocations: 1.026 MB / 0.5505 GB, free: 63.56 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006687/1.039, allocations: 243.7 kB / 0.5507 GB, free: 63.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002244/1.039, allocations: 19.92 kB / 0.5507 GB, free: 63.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008983/1.04, allocations: 39.94 kB / 0.5508 GB, free: 63.25 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001201/1.041, allocations: 36.39 kB / 0.5508 GB, free: 63.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.278e-05/1.041, allocations: 19.98 kB / 0.5508 GB, free: 63.19 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00147/1.042, allocations: 0.7166 MB / 0.5515 GB, free: 62.47 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.41e-07/1.042, allocations: 0 / 0.5515 GB, free: 62.47 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002596/1.045, allocations: 0.5117 MB / 0.552 GB, free: 61.96 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.00321/1.048, allocations: 2.335 MB / 0.5543 GB, free: 59.58 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00313/1.051, allocations: 1.27 MB / 0.5555 GB, free: 58.29 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.406e-06/1.051, allocations: 0 / 0.5555 GB, free: 58.29 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008723/1.052, allocations: 357.5 kB / 0.5559 GB, free: 57.93 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002225/1.054, allocations: 255.2 kB / 0.5561 GB, free: 57.68 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02037/1.075, allocations: 16.23 MB / 0.572 GB, free: 40.89 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008154/1.076, allocations: 1.2 MB / 0.5731 GB, free: 39.66 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001128/1.077, allocations: 0.5657 MB / 0.5737 GB, free: 39.1 MB / 378.7 MB Notification: Performance of SimCode: time 1.132e-06/1.077, allocations: 0 / 0.5737 GB, free: 39.1 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.9/3.977, allocations: 29.89 MB / 0.6029 GB, free: 9.18 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat does not exist to compare? outputFormat=mat