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.00151/0.00151, allocations: 185.9 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.985/1.985, allocations: 205.4 MB / 222.5 MB, free: 9.137 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.001155/0.001155, allocations: 93.3 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004081/0.0004082, allocations: 11.98 kB / 327.1 MB, free: 120 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.342/0.3424, allocations: 47.57 MB / 374.6 MB, free: 45.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1865/0.529, allocations: 116.2 MB / 490.8 MB, free: 12.4 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003478/0.5294, allocations: 91.95 kB / 490.9 MB, free: 12.31 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4327/0.9622, allocations: 42.72 MB / 0.5211 GB, free: 95.65 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.316e-06/0.9622, allocations: 0 / 0.5211 GB, free: 95.65 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000156/0.9624, allocations: 45.08 kB / 0.5212 GB, free: 95.61 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: 417 * Number of variables: 417 Notification: Performance of Generate backend data structure: time 0.005955/0.9684, allocations: 1.941 MB / 0.5231 GB, free: 93.62 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.486e-05/0.9684, allocations: 8.031 kB / 0.5231 GB, free: 93.61 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007513/0.9692, allocations: 232.5 kB / 0.5233 GB, free: 93.37 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001182/0.9704, allocations: 273.3 kB / 0.5235 GB, free: 93.1 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003551/0.974, allocations: 1.171 MB / 0.5247 GB, free: 91.9 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000114/0.9741, allocations: 127.3 kB / 0.5248 GB, free: 91.77 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000338/0.9745, allocations: 175.8 kB / 0.525 GB, free: 91.6 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004403/0.9789, allocations: 1.586 MB / 0.5265 GB, free: 89.95 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.322e-05/0.979, allocations: 8 kB / 0.5265 GB, free: 89.95 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002029/0.9792, allocations: 71.98 kB / 0.5266 GB, free: 89.88 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.561e-05/0.9793, allocations: 40 kB / 0.5266 GB, free: 89.84 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003725/0.983, allocations: 1.117 MB / 0.5277 GB, free: 88.71 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01339/0.9965, allocations: 6.761 MB / 0.5343 GB, free: 81.7 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002863/0.9994, allocations: 0.9993 MB / 0.5353 GB, free: 80.63 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.687e-05/0.9995, allocations: 12.55 kB / 0.5353 GB, free: 80.62 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.918e-05/0.9995, allocations: 43.08 kB / 0.5354 GB, free: 80.57 MB / 378.7 MB Notification: Performance of pre-optimization done (n=61): time 2.996e-06/0.9996, allocations: 0 / 0.5354 GB, free: 80.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=64): time 0.00638/1.006, allocations: 2.12 MB / 0.5374 GB, free: 78.38 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.673e-05/1.006, allocations: 85.67 kB / 0.5375 GB, free: 78.28 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002168/1.008, allocations: 1.079 MB / 0.5386 GB, free: 77.19 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001661/1.008, allocations: 41.7 kB / 0.5386 GB, free: 77.14 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005625/1.009, allocations: 0.875 MB / 0.5395 GB, free: 76.26 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002366/1.009, allocations: 248.7 kB / 0.5397 GB, free: 76.02 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.336e-05/1.009, allocations: 20 kB / 0.5397 GB, free: 76 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.905e-05/1.009, allocations: 354.8 kB / 0.5401 GB, free: 75.65 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001016/1.01, allocations: 310.5 kB / 0.5404 GB, free: 75.35 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001189/1.012, allocations: 0.7243 MB / 0.5411 GB, free: 74.43 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00118/1.013, allocations: 419 kB / 0.5415 GB, free: 74.02 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.486e-06/1.013, allocations: 7.938 kB / 0.5415 GB, free: 74.01 MB / 378.7 MB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002932/1.016, allocations: 1.115 MB / 0.5426 GB, free: 72.89 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00109/1.017, allocations: 5.305 MB / 0.5477 GB, free: 67.17 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.035e-05/1.017, allocations: 16 kB / 0.5477 GB, free: 67.15 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003017/1.017, allocations: 36.86 kB / 0.5478 GB, free: 67.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001796/1.019, allocations: 279.5 kB / 0.5481 GB, free: 66.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001015/1.02, allocations: 1.303 MB / 0.5493 GB, free: 65.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001579/1.022, allocations: 76.06 kB / 0.5494 GB, free: 65.33 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.978e-05/1.022, allocations: 52 kB / 0.5494 GB, free: 65.28 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.246e-05/1.022, allocations: 4 kB / 0.5495 GB, free: 65.27 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0023/1.024, allocations: 0.9494 MB / 0.5504 GB, free: 64.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.86e-05/1.024, allocations: 12 kB / 0.5504 GB, free: 64.31 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000156/1.024, allocations: 36.86 kB / 0.5504 GB, free: 64.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001504/1.026, allocations: 264.1 kB / 0.5507 GB, free: 64.01 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009116/1.027, allocations: 1.299 MB / 0.5519 GB, free: 62.58 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007441/1.028, allocations: 47.98 kB / 0.552 GB, free: 62.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.846e-05/1.028, allocations: 52 kB / 0.552 GB, free: 62.48 MB / 378.7 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 () * Number of clocked 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.001101/1.029, allocations: 437.6 kB / 0.5525 GB, free: 62.05 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003771/1.029, allocations: 134.5 kB / 0.5526 GB, free: 61.91 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002254/1.031, allocations: 0.7322 MB / 0.5533 GB, free: 61.17 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.039e-05/1.032, allocations: 8 kB / 0.5533 GB, free: 61.16 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/1.032, allocations: 0 / 0.5533 GB, free: 61.16 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.083e-05/1.032, allocations: 3.984 kB / 0.5533 GB, free: 61.16 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005152/1.037, allocations: 2.131 MB / 0.5554 GB, free: 58.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.476e-06/1.037, allocations: 4 kB / 0.5554 GB, free: 58.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001196/1.038, allocations: 152 kB / 0.5555 GB, free: 58.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001412/1.038, allocations: 20.84 kB / 0.5556 GB, free: 58.78 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.083e-05/1.038, allocations: 20 kB / 0.5556 GB, free: 58.76 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008993/1.039, allocations: 1.291 MB / 0.5568 GB, free: 57.33 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/1.039, allocations: 4 kB / 0.5568 GB, free: 57.33 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003144/1.042, allocations: 1.253 MB / 0.5581 GB, free: 55.97 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007341/1.043, allocations: 267.3 kB / 0.5583 GB, free: 55.69 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002344/1.043, allocations: 12 kB / 0.5583 GB, free: 55.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001031/1.044, allocations: 63.95 kB / 0.5584 GB, free: 55.62 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001322/1.045, allocations: 52.33 kB / 0.5584 GB, free: 55.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.007e-05/1.045, allocations: 20 kB / 0.5585 GB, free: 55.55 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001637/1.046, allocations: 0.8189 MB / 0.5593 GB, free: 54.73 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.11e-07/1.046, allocations: 0 / 0.5593 GB, free: 54.73 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002711/1.049, allocations: 0.5469 MB / 0.5598 GB, free: 54.18 MB / 378.7 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 () * Number of clocked 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.004389/1.053, allocations: 2.585 MB / 0.5623 GB, free: 51.55 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003771/1.057, allocations: 1.479 MB / 0.5638 GB, free: 50.06 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.267e-06/1.057, allocations: 3.938 kB / 0.5638 GB, free: 50.06 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001129/1.058, allocations: 434.7 kB / 0.5642 GB, free: 49.62 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002472/1.061, allocations: 308.8 kB / 0.5645 GB, free: 49.33 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02202/1.083, allocations: 17.74 MB / 0.5818 GB, free: 30.95 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008754/1.084, allocations: 1.276 MB / 0.5831 GB, free: 29.64 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00129/1.085, allocations: 0.6516 MB / 0.5837 GB, free: 28.99 MB / 378.7 MB Notification: Performance of SimCode: time 1.392e-06/1.085, allocations: 4 kB / 0.5837 GB, free: 28.99 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.988/4.074, allocations: 33.27 MB / 0.6162 GB, free: 11.68 MB / 394.7 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