Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.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.SpeedControlledDCPM,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM",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.001472/0.001472, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.087/2.087, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001106/0.001106, allocations: 96.8 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.23e-05/2.231e-05, allocations: 0 / 314.9 MB, free: 9.059 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3457/0.3458, allocations: 47.57 MB / 362.4 MB, free: 45.74 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1875/0.5334, allocations: 115.4 MB / 477.9 MB, free: 2.703 MB / 363.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003228/0.5337, allocations: 79.95 kB / 477.9 MB, free: 2.625 MB / 363.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.4498/0.9836, allocations: 41.88 MB / 0.5076 GB, free: 102.5 MB / 395.1 MB Notification: Performance of FrontEnd: time 4.008e-06/0.9837, allocations: 0.5625 kB / 0.5076 GB, free: 102.5 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0001927/0.9839, allocations: 48.58 kB / 0.5077 GB, free: 102.5 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 417 * Number of variables: 417 Notification: Performance of Generate backend data structure: time 0.00569/0.9896, allocations: 1.694 MB / 0.5093 GB, free: 101.7 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.419e-05/0.9896, allocations: 11.09 kB / 0.5094 GB, free: 101.7 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001586/0.9912, allocations: 268.4 kB / 0.5096 GB, free: 101.6 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003859/0.9951, allocations: 1.173 MB / 0.5108 GB, free: 101.2 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.263e-05/0.9953, allocations: 57.94 kB / 0.5108 GB, free: 101.2 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004013/0.9957, allocations: 99.38 kB / 0.5109 GB, free: 101.2 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00374/0.9994, allocations: 0.8774 MB / 0.5118 GB, free: 101.2 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004748/1.004, allocations: 1.265 MB / 0.513 GB, free: 101 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.093e-05/1.004, allocations: 6.219 kB / 0.513 GB, free: 101 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000176/1.005, allocations: 2.125 kB / 0.513 GB, free: 101 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.52e-05/1.005, allocations: 41.62 kB / 0.513 GB, free: 101 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01558/1.02, allocations: 6.456 MB / 0.5193 GB, free: 98.3 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002478/1.023, allocations: 0.8597 MB / 0.5202 GB, free: 97.98 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000624/1.023, allocations: 241.4 kB / 0.5204 GB, free: 97.96 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.01e-05/1.024, allocations: 12.03 kB / 0.5204 GB, free: 97.96 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.874e-05/1.024, allocations: 39.5 kB / 0.5205 GB, free: 97.93 MB / 395.1 MB Notification: Performance of pre-optimization done (n=61): time 3.757e-06/1.024, allocations: 0 / 0.5205 GB, free: 97.93 MB / 395.1 MB Notification: Performance of matching and sorting (n=64): time 0.004416/1.028, allocations: 1.441 MB / 0.5219 GB, free: 97.3 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.635e-05/1.028, allocations: 81.48 kB / 0.522 GB, free: 97.21 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00191/1.03, allocations: 0.9124 MB / 0.5228 GB, free: 97.05 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001488/1.03, allocations: 25.7 kB / 0.5229 GB, free: 97.02 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000661/1.031, allocations: 0.8891 MB / 0.5237 GB, free: 96.41 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002552/1.031, allocations: 230.4 kB / 0.524 GB, free: 96.24 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.507e-05/1.031, allocations: 3.828 kB / 0.524 GB, free: 96.24 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001094/1.031, allocations: 353.5 kB / 0.5243 GB, free: 95.91 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005694/1.032, allocations: 221.8 kB / 0.5245 GB, free: 95.81 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007794/1.033, allocations: 0.6204 MB / 0.5251 GB, free: 95.18 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007429/1.034, allocations: 338.6 kB / 0.5254 GB, free: 95.03 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.053e-05/1.034, allocations: 3.844 kB / 0.5254 GB, free: 95.03 MB / 395.1 MB Notification: Performance of matching and sorting (n=141) (initialization): time 0.001998/1.036, allocations: 0.8421 MB / 0.5263 GB, free: 94.69 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001214/1.037, allocations: 5.317 MB / 0.5315 GB, free: 89.01 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.277e-05/1.037, allocations: 12.16 kB / 0.5315 GB, free: 89.01 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002859/1.037, allocations: 38.92 kB / 0.5315 GB, free: 89 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001872/1.039, allocations: 280.8 kB / 0.5318 GB, free: 88.96 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001047/1.04, allocations: 1.242 MB / 0.533 GB, free: 87.72 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001654/1.042, allocations: 52.2 kB / 0.533 GB, free: 87.71 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001345/1.042, allocations: 51.34 kB / 0.5331 GB, free: 87.71 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/1.042, allocations: 5.906 kB / 0.5331 GB, free: 87.71 MB / 395.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001844/1.044, allocations: 0.7594 MB / 0.5338 GB, free: 87.41 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.995e-05/1.044, allocations: 11.84 kB / 0.5338 GB, free: 87.41 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000138/1.044, allocations: 32.33 kB / 0.5339 GB, free: 87.41 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001563/1.046, allocations: 261.1 kB / 0.5341 GB, free: 87.38 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009417/1.047, allocations: 1.244 MB / 0.5353 GB, free: 86.13 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008697/1.048, allocations: 31.55 kB / 0.5354 GB, free: 86.12 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.865e-05/1.048, allocations: 53.34 kB / 0.5354 GB, free: 86.11 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 3 (speedController.integrator.local_reset,currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (140): * Single equations (assignments): 139 * 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.0003039/1.048, allocations: 146.2 kB / 0.5356 GB, free: 85.97 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001422/1.049, allocations: 0.5141 MB / 0.5361 GB, free: 85.73 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002291/1.05, allocations: 124 kB / 0.5362 GB, free: 85.67 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001408/1.051, allocations: 0.5441 MB / 0.5367 GB, free: 85.43 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.768e-06/1.051, allocations: 3.844 kB / 0.5367 GB, free: 85.43 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.972e-06/1.051, allocations: 2.344 kB / 0.5367 GB, free: 85.43 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/1.051, allocations: 3.75 kB / 0.5367 GB, free: 85.43 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004383/1.056, allocations: 1.771 MB / 0.5384 GB, free: 84.52 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-05/1.056, allocations: 3.938 kB / 0.5384 GB, free: 84.52 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001215/1.057, allocations: 144.3 kB / 0.5386 GB, free: 84.51 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001537/1.057, allocations: 24.44 kB / 0.5386 GB, free: 84.5 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.207e-05/1.057, allocations: 7.438 kB / 0.5386 GB, free: 84.5 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000868/1.058, allocations: 1.225 MB / 0.5398 GB, free: 83.25 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.302e-06/1.058, allocations: 7.766 kB / 0.5398 GB, free: 83.25 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002015/1.06, allocations: 0.9946 MB / 0.5408 GB, free: 82.61 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007254/1.061, allocations: 257.3 kB / 0.541 GB, free: 82.4 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000215/1.061, allocations: 3.969 kB / 0.541 GB, free: 82.4 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001066/1.062, allocations: 51.05 kB / 0.5411 GB, free: 82.39 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001552/1.062, allocations: 47.67 kB / 0.5411 GB, free: 82.38 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.37e-05/1.062, allocations: 19.78 kB / 0.5412 GB, free: 82.38 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.001351/1.064, allocations: 0.6629 MB / 0.5418 GB, free: 82.06 MB / 395.1 MB Notification: Performance of sort global known variables: time 8.31e-07/1.064, allocations: 0 / 0.5418 GB, free: 82.06 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.00312/1.067, allocations: 464.8 kB / 0.5422 GB, free: 82.05 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 13 (loadInertia.phi,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,speedController.integrator.y,preFilter.y,slewRateLimiter.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 62 * 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.003003/1.07, allocations: 2.286 MB / 0.5445 GB, free: 80.34 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.002763/1.073, allocations: 1.197 MB / 0.5456 GB, free: 79.75 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 9.548e-06/1.073, allocations: 4.5 kB / 0.5457 GB, free: 79.75 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007106/1.074, allocations: 354.3 kB / 0.546 GB, free: 79.55 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002472/1.076, allocations: 262.1 kB / 0.5462 GB, free: 79.48 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007638/1.084, allocations: 2.324 MB / 0.5485 GB, free: 78.38 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008769/1.085, allocations: 1.275 MB / 0.5498 GB, free: 77.64 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001221/1.086, allocations: 0.6522 MB / 0.5504 GB, free: 77.11 MB / 395.1 MB Notification: Performance of SimCode: time 1.232e-06/1.086, allocations: 0 / 0.5504 GB, free: 77.11 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.221/4.307, allocations: 32.21 MB / 0.5818 GB, free: 56.59 MB / 395.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM_res.mat does not exist to compare? outputFormat=mat