Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001014/0.001014, allocations: 179.9 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.269/1.269, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008494/0.0008494, allocations: 94 kB / 291.5 MB, free: 10.89 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002466/0.000247, allocations: 4 kB / 351.2 MB, free: 15.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2235/0.2237, allocations: 50.41 MB / 401.6 MB, free: 32.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3116/0.5354, allocations: 117 MB / 0.5064 GB, free: 50.2 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002307/0.5357, allocations: 88.41 kB / 0.5065 GB, free: 50.2 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09898/0.6346, allocations: 42.88 MB / 0.5484 GB, free: 42.19 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.6347, allocations: 4 kB / 0.5484 GB, free: 42.18 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001476/0.6348, allocations: 46.86 kB / 0.5484 GB, free: 42.18 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.003804/0.6387, allocations: 1.936 MB / 0.5503 GB, free: 40.93 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.6387, allocations: 7.812 kB / 0.5503 GB, free: 40.93 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004221/0.6391, allocations: 234.7 kB / 0.5505 GB, free: 40.84 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008405/0.64, allocations: 269 kB / 0.5508 GB, free: 40.72 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002092/0.6421, allocations: 1.168 MB / 0.5519 GB, free: 40.09 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.802e-05/0.6422, allocations: 126.3 kB / 0.5521 GB, free: 40.09 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002308/0.6424, allocations: 168 kB / 0.5522 GB, free: 40.08 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002507/0.6449, allocations: 1.589 MB / 0.5538 GB, free: 39.62 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.554e-05/0.645, allocations: 3.906 kB / 0.5538 GB, free: 39.62 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001161/0.6451, allocations: 73 kB / 0.5538 GB, free: 39.61 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.308e-05/0.6451, allocations: 39.06 kB / 0.5539 GB, free: 39.61 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001945/0.6471, allocations: 1.122 MB / 0.555 GB, free: 39.44 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007735/0.6548, allocations: 6.749 MB / 0.5616 GB, free: 35.4 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001619/0.6565, allocations: 1.008 MB / 0.5626 GB, free: 34.96 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.395e-05/0.6566, allocations: 12.05 kB / 0.5626 GB, free: 34.96 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.503e-05/0.6566, allocations: 39.75 kB / 0.5626 GB, free: 34.92 MB / 378.7 MB Notification: Performance of pre-optimization done (n=61): time 3.186e-06/0.6566, allocations: 4 kB / 0.5626 GB, free: 34.92 MB / 378.7 MB Notification: Performance of matching and sorting (n=64): time 0.004142/0.6607, allocations: 2.13 MB / 0.5647 GB, free: 34.03 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.238e-05/0.6608, allocations: 85.42 kB / 0.5648 GB, free: 33.93 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002061/0.6629, allocations: 1.079 MB / 0.5658 GB, free: 33.62 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.061e-05/0.663, allocations: 34.14 kB / 0.5659 GB, free: 33.59 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005681/0.6636, allocations: 0.8904 MB / 0.5667 GB, free: 33.09 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000201/0.6638, allocations: 243.2 kB / 0.567 GB, free: 32.91 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.876e-05/0.6639, allocations: 19.28 kB / 0.567 GB, free: 32.91 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.99e-05/0.664, allocations: 354.8 kB / 0.5673 GB, free: 32.59 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006405/0.6646, allocations: 317.1 kB / 0.5676 GB, free: 32.54 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007621/0.6654, allocations: 0.7172 MB / 0.5683 GB, free: 31.95 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006969/0.6661, allocations: 427.5 kB / 0.5687 GB, free: 31.74 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.197e-06/0.6661, allocations: 3.562 kB / 0.5687 GB, free: 31.74 MB / 378.7 MB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002091/0.6682, allocations: 1.184 MB / 0.5699 GB, free: 31.16 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009954/0.6692, allocations: 5.377 MB / 0.5751 GB, free: 25.47 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.553e-05/0.6693, allocations: 11.16 kB / 0.5751 GB, free: 25.47 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001995/0.6695, allocations: 43.72 kB / 0.5752 GB, free: 25.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008765/0.6704, allocations: 280.5 kB / 0.5755 GB, free: 25.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007275/0.6711, allocations: 1.297 MB / 0.5767 GB, free: 24.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009743/0.6721, allocations: 69.98 kB / 0.5768 GB, free: 24.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.29e-05/0.6722, allocations: 57.2 kB / 0.5768 GB, free: 24 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.695e-06/0.6722, allocations: 8.062 kB / 0.5769 GB, free: 24 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001369/0.6736, allocations: 0.9463 MB / 0.5778 GB, free: 23.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.522e-05/0.6736, allocations: 14 kB / 0.5778 GB, free: 23.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.685e-05/0.6737, allocations: 44.62 kB / 0.5778 GB, free: 23.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000739/0.6744, allocations: 251 kB / 0.5781 GB, free: 23.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006026/0.6751, allocations: 1.307 MB / 0.5794 GB, free: 22.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008776/0.6759, allocations: 50.48 kB / 0.5794 GB, free: 22.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.655e-05/0.676, allocations: 54.16 kB / 0.5794 GB, free: 22.08 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.0007756/0.6768, allocations: 437.7 kB / 0.5799 GB, free: 21.73 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002431/0.6771, allocations: 136.1 kB / 0.58 GB, free: 21.66 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001284/0.6783, allocations: 0.7325 MB / 0.5807 GB, free: 21.25 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.61e-06/0.6784, allocations: 7.625 kB / 0.5807 GB, free: 21.25 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.6784, allocations: 0 / 0.5807 GB, free: 21.25 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.6784, allocations: 11.94 kB / 0.5807 GB, free: 21.24 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003165/0.6816, allocations: 2.13 MB / 0.5828 GB, free: 19.57 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/0.6816, allocations: 4 kB / 0.5828 GB, free: 19.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005889/0.6822, allocations: 148 kB / 0.583 GB, free: 19.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.926e-05/0.6823, allocations: 24.84 kB / 0.583 GB, free: 19.4 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.241e-05/0.6823, allocations: 16 kB / 0.583 GB, free: 19.38 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005772/0.6829, allocations: 1.28 MB / 0.5842 GB, free: 17.97 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.6829, allocations: 7.984 kB / 0.5843 GB, free: 17.96 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001679/0.6846, allocations: 1.257 MB / 0.5855 GB, free: 16.61 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000508/0.6851, allocations: 275.4 kB / 0.5857 GB, free: 16.32 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002388/0.6854, allocations: 12 kB / 0.5858 GB, free: 16.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006795/0.6861, allocations: 59.95 kB / 0.5858 GB, free: 16.25 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.096e-05/0.6862, allocations: 52.44 kB / 0.5859 GB, free: 16.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.345e-05/0.6862, allocations: 16 kB / 0.5859 GB, free: 16.18 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00126/0.6875, allocations: 0.8071 MB / 0.5867 GB, free: 15.37 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6875, allocations: 0 / 0.5867 GB, free: 15.37 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002071/0.6896, allocations: 0.5508 MB / 0.5872 GB, free: 14.82 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.002255/0.6918, allocations: 2.568 MB / 0.5897 GB, free: 12.18 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002274/0.6941, allocations: 1.49 MB / 0.5912 GB, free: 10.66 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.6941, allocations: 0 / 0.5912 GB, free: 10.66 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000582/0.6947, allocations: 439.6 kB / 0.5916 GB, free: 10.23 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001365/0.6961, allocations: 304.4 kB / 0.5919 GB, free: 9.934 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01612/0.7122, allocations: 17.67 MB / 0.6091 GB, free: 7.633 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001206/0.7135, allocations: 1.272 MB / 0.6104 GB, free: 6.332 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001047/0.7146, allocations: 174.5 kB / 0.6105 GB, free: 6.156 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009999/0.7156, allocations: 0.6438 MB / 0.6112 GB, free: 5.512 MB / 394.7 MB Notification: Performance of SimCode: time 7.013e-06/0.7156, allocations: 4 kB / 0.6112 GB, free: 5.508 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05274/0.7684, allocations: 30 MB / 0.6405 GB, free: 7.875 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002211/0.7686, allocations: 231.9 kB / 0.6407 GB, free: 7.633 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.92/3.688, allocations: 6.812 kB / 0.6407 GB, free: 7.629 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM_res.mat does not exist to compare? outputFormat=mat