Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001157/0.001157, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.251/1.251, allocations: 227.2 MB / 245 MB, free: 5.949 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008627/0.0008628, allocations: 103.3 kB / 297.3 MB, free: 5.969 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002308/0.0002308, allocations: 4 kB / 358 MB, free: 9.223 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1954/0.1956, allocations: 51.48 MB / 409.5 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2979/0.4935, allocations: 118.7 MB / 0.5158 GB, free: 96.65 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002475/0.4938, allocations: 88.19 kB / 0.5159 GB, free: 96.61 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08861/0.5824, allocations: 42.66 MB / 0.5575 GB, free: 54.4 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.5825, allocations: 0 / 0.5575 GB, free: 54.4 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.252e-05/0.5826, allocations: 48.11 kB / 0.5576 GB, free: 54.35 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: 413 * Number of variables: 413 Notification: Performance of Generate backend data structure: time 0.002968/0.5855, allocations: 1.919 MB / 0.5594 GB, free: 52.38 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.5856, allocations: 8.031 kB / 0.5595 GB, free: 52.37 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000229/0.5858, allocations: 228.4 kB / 0.5597 GB, free: 52.13 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006356/0.5865, allocations: 273.3 kB / 0.5599 GB, free: 51.86 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001712/0.5882, allocations: 1.153 MB / 0.5611 GB, free: 50.65 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.057e-05/0.5883, allocations: 127.2 kB / 0.5612 GB, free: 50.53 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001694/0.5885, allocations: 171.9 kB / 0.5613 GB, free: 50.36 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002173/0.5906, allocations: 1.57 MB / 0.5629 GB, free: 48.73 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.971e-05/0.5907, allocations: 7.938 kB / 0.5629 GB, free: 48.72 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001077/0.5908, allocations: 64 kB / 0.5629 GB, free: 48.66 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.221e-05/0.5908, allocations: 40 kB / 0.563 GB, free: 48.62 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001744/0.5926, allocations: 1.105 MB / 0.5641 GB, free: 47.51 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006952/0.5995, allocations: 6.672 MB / 0.5706 GB, free: 40.53 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001489/0.6011, allocations: 1.007 MB / 0.5716 GB, free: 39.45 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.077e-05/0.6011, allocations: 8.562 kB / 0.5716 GB, free: 39.45 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.987e-05/0.6012, allocations: 39.12 kB / 0.5716 GB, free: 39.4 MB / 378.7 MB Notification: Performance of pre-optimization done (n=61): time 2.675e-06/0.6012, allocations: 0 / 0.5716 GB, free: 39.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=64): time 0.003441/0.6046, allocations: 2.117 MB / 0.5737 GB, free: 37.21 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.361e-05/0.6047, allocations: 85.67 kB / 0.5738 GB, free: 37.11 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001379/0.6061, allocations: 1.062 MB / 0.5748 GB, free: 36.03 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.209e-05/0.6061, allocations: 45.7 kB / 0.5748 GB, free: 35.98 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004404/0.6066, allocations: 0.8763 MB / 0.5757 GB, free: 35.09 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001269/0.6067, allocations: 240.6 kB / 0.5759 GB, free: 34.86 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.51e-05/0.6067, allocations: 20 kB / 0.5759 GB, free: 34.84 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.713e-05/0.6068, allocations: 345.9 kB / 0.5763 GB, free: 34.49 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005211/0.6074, allocations: 318.5 kB / 0.5766 GB, free: 34.18 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006512/0.608, allocations: 0.7158 MB / 0.5773 GB, free: 33.28 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000635/0.6087, allocations: 423.4 kB / 0.5777 GB, free: 32.86 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/0.6087, allocations: 7.938 kB / 0.5777 GB, free: 32.86 MB / 378.7 MB Notification: Performance of matching and sorting (n=141) (initialization): time 0.001791/0.6105, allocations: 1.188 MB / 0.5788 GB, free: 31.66 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009033/0.6114, allocations: 5.362 MB / 0.5841 GB, free: 25.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.912e-05/0.6114, allocations: 12 kB / 0.5841 GB, free: 25.92 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000184/0.6116, allocations: 48.84 kB / 0.5841 GB, free: 25.87 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008299/0.6124, allocations: 271.6 kB / 0.5844 GB, free: 25.61 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006889/0.6131, allocations: 1.307 MB / 0.5857 GB, free: 24.17 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008919/0.614, allocations: 72.12 kB / 0.5857 GB, free: 24.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.692e-05/0.6141, allocations: 48 kB / 0.5858 GB, free: 24.05 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.256e-06/0.6141, allocations: 4 kB / 0.5858 GB, free: 24.05 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001283/0.6154, allocations: 0.9494 MB / 0.5867 GB, free: 23.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.148e-05/0.6154, allocations: 12 kB / 0.5867 GB, free: 23.08 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.828e-05/0.6155, allocations: 45.41 kB / 0.5868 GB, free: 23.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007248/0.6163, allocations: 255.6 kB / 0.587 GB, free: 22.79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006034/0.6169, allocations: 1.303 MB / 0.5883 GB, free: 21.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008115/0.6177, allocations: 51.89 kB / 0.5883 GB, free: 21.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.255e-05/0.6178, allocations: 59.95 kB / 0.5884 GB, free: 21.23 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.0007115/0.6185, allocations: 431.5 kB / 0.5888 GB, free: 20.8 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001656/0.6187, allocations: 130.4 kB / 0.5889 GB, free: 20.68 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001187/0.6199, allocations: 0.7321 MB / 0.5896 GB, free: 19.93 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.6199, allocations: 11.95 kB / 0.5897 GB, free: 19.92 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.6199, allocations: 0 / 0.5897 GB, free: 19.92 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.6199, allocations: 3.984 kB / 0.5897 GB, free: 19.92 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002799/0.6227, allocations: 2.12 MB / 0.5917 GB, free: 17.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.6227, allocations: 0 / 0.5917 GB, free: 17.71 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006046/0.6233, allocations: 144 kB / 0.5919 GB, free: 17.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.538e-05/0.6234, allocations: 28.84 kB / 0.5919 GB, free: 17.54 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.825e-05/0.6235, allocations: 12 kB / 0.5919 GB, free: 17.53 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006369/0.6241, allocations: 1.284 MB / 0.5932 GB, free: 16.11 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.6241, allocations: 3.938 kB / 0.5932 GB, free: 16.11 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001665/0.6258, allocations: 1.26 MB / 0.5944 GB, free: 14.75 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004044/0.6262, allocations: 263.4 kB / 0.5946 GB, free: 14.47 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001481/0.6264, allocations: 12 kB / 0.5947 GB, free: 14.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005591/0.627, allocations: 55.97 kB / 0.5947 GB, free: 14.4 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.512e-05/0.627, allocations: 44.5 kB / 0.5948 GB, free: 14.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.113e-05/0.6271, allocations: 23.98 kB / 0.5948 GB, free: 14.34 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009604/0.6281, allocations: 0.8028 MB / 0.5956 GB, free: 13.53 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6281, allocations: 4 kB / 0.5956 GB, free: 13.53 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001571/0.6296, allocations: 0.5469 MB / 0.5961 GB, free: 12.98 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.00226/0.6319, allocations: 2.576 MB / 0.5986 GB, free: 10.32 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002246/0.6342, allocations: 1.479 MB / 0.6001 GB, free: 8.824 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.6342, allocations: 4.875 kB / 0.6001 GB, free: 8.82 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005763/0.6348, allocations: 446.1 kB / 0.6005 GB, free: 8.375 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001301/0.6361, allocations: 297.3 kB / 0.6008 GB, free: 8.098 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0153/0.6514, allocations: 17.58 MB / 0.6179 GB, free: 5.887 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001059/0.6525, allocations: 1.264 MB / 0.6192 GB, free: 4.594 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0008989/0.6534, allocations: 186.5 kB / 0.6194 GB, free: 4.406 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008334/0.6543, allocations: 0.6321 MB / 0.62 GB, free: 3.773 MB / 394.7 MB Notification: Performance of SimCode: time 6.12e-07/0.6543, allocations: 0 / 0.62 GB, free: 3.773 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05574/0.71, allocations: 29.78 MB / 0.649 GB, free: 6.289 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002502/0.7103, allocations: 236.4 kB / 0.6493 GB, free: 6.047 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.705/3.416, allocations: 7.938 kB / 0.6493 GB, free: 6.039 MB / 426.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM_res.mat does not exist to compare? outputFormat=mat