Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.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.PositionControlledDCPM,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_PositionControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_PositionControlledDCPM",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.001354/0.001354, allocations: 181.1 kB / 16.39 MB, free: 5.762 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.273/1.273, allocations: 223.2 MB / 240.3 MB, free: 11.9 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.000987/0.0009869, allocations: 100.2 kB / 291.5 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002439/0.0002439, allocations: 8 kB / 351.2 MB, free: 15.24 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2099/0.2102, allocations: 50.4 MB / 401.6 MB, free: 32.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.304/0.5143, allocations: 118.2 MB / 0.5076 GB, free: 102 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002142/0.5145, allocations: 90.3 kB / 0.5077 GB, free: 102 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1002/0.6147, allocations: 47.28 MB / 0.5538 GB, free: 60.79 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.825e-06/0.6148, allocations: 3.984 kB / 0.5538 GB, free: 60.79 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001235/0.6149, allocations: 47.98 kB / 0.5539 GB, free: 60.74 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: 473 * Number of variables: 473 Notification: Performance of Generate backend data structure: time 0.003788/0.6187, allocations: 2.188 MB / 0.556 GB, free: 58.5 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.6188, allocations: 16.03 kB / 0.556 GB, free: 58.48 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003082/0.6191, allocations: 266 kB / 0.5563 GB, free: 58.21 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006956/0.6198, allocations: 301 kB / 0.5566 GB, free: 57.92 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00219/0.622, allocations: 1.256 MB / 0.5578 GB, free: 56.61 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002346/0.6222, allocations: 260.8 kB / 0.558 GB, free: 56.33 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002579/0.6225, allocations: 191.9 kB / 0.5582 GB, free: 56.14 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003022/0.6255, allocations: 1.921 MB / 0.5601 GB, free: 54.17 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.516e-05/0.6256, allocations: 15.89 kB / 0.5601 GB, free: 54.15 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001353/0.6257, allocations: 72 kB / 0.5602 GB, free: 54.08 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.481e-05/0.6258, allocations: 51.95 kB / 0.5602 GB, free: 54.03 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002959/0.6287, allocations: 1.649 MB / 0.5619 GB, free: 52.38 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008319/0.6371, allocations: 7.479 MB / 0.5692 GB, free: 44.58 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002162/0.6393, allocations: 1.296 MB / 0.5704 GB, free: 43.2 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.797e-05/0.6393, allocations: 16.98 kB / 0.5704 GB, free: 43.19 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.154e-05/0.6394, allocations: 51.5 kB / 0.5705 GB, free: 43.13 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 3.276e-06/0.6394, allocations: 0 / 0.5705 GB, free: 43.13 MB / 378.7 MB Notification: Performance of matching and sorting (n=111): time 0.02919/0.6686, allocations: 8.833 MB / 0.5791 GB, free: 34.18 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.632e-05/0.6687, allocations: 94.05 kB / 0.5792 GB, free: 34.07 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001776/0.6705, allocations: 1.214 MB / 0.5804 GB, free: 32.86 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001212/0.6706, allocations: 45.7 kB / 0.5804 GB, free: 32.8 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000466/0.6711, allocations: 0.9747 MB / 0.5814 GB, free: 31.82 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00027/0.6714, allocations: 390.4 kB / 0.5818 GB, free: 31.43 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.827e-05/0.6715, allocations: 32 kB / 0.5818 GB, free: 31.4 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.564e-05/0.6716, allocations: 369.8 kB / 0.5821 GB, free: 31.03 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001663/0.6733, allocations: 0.7847 MB / 0.5829 GB, free: 30.25 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001804/0.6751, allocations: 1.223 MB / 0.5841 GB, free: 28.83 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001704/0.6768, allocations: 0.8183 MB / 0.5849 GB, free: 28.01 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.315e-06/0.6768, allocations: 4 kB / 0.5849 GB, free: 28.01 MB / 378.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004444/0.6813, allocations: 2.175 MB / 0.587 GB, free: 25.82 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008384/0.6822, allocations: 5.418 MB / 0.5923 GB, free: 20.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.965e-05/0.6822, allocations: 12 kB / 0.5923 GB, free: 20.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001976/0.6824, allocations: 36.86 kB / 0.5924 GB, free: 20.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001789/0.6842, allocations: 447.3 kB / 0.5928 GB, free: 19.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007474/0.685, allocations: 1.308 MB / 0.5941 GB, free: 18.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001712/0.6867, allocations: 172 kB / 0.5942 GB, free: 17.99 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001166/0.6868, allocations: 64 kB / 0.5943 GB, free: 17.93 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.417e-06/0.6868, allocations: 8 kB / 0.5943 GB, free: 17.92 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003452/0.6903, allocations: 1.875 MB / 0.5961 GB, free: 16.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.759e-05/0.6903, allocations: 16 kB / 0.5961 GB, free: 16.03 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001046/0.6904, allocations: 44.84 kB / 0.5962 GB, free: 15.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001497/0.6919, allocations: 407.6 kB / 0.5966 GB, free: 15.58 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006093/0.6926, allocations: 1.311 MB / 0.5979 GB, free: 14.14 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001563/0.6941, allocations: 148 kB / 0.598 GB, free: 13.99 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001/0.6943, allocations: 60 kB / 0.5981 GB, free: 13.93 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: 6 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase,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 (194): * Single equations (assignments): 193 * 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.0008885/0.6951, allocations: 485.2 kB / 0.5985 GB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002529/0.6954, allocations: 162 kB / 0.5987 GB, free: 13.29 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003406/0.6988, allocations: 1.639 MB / 0.6003 GB, free: 11.63 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.758e-06/0.6989, allocations: 12 kB / 0.6003 GB, free: 11.62 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.6989, allocations: 0 / 0.6003 GB, free: 11.62 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.049e-05/0.6989, allocations: 3.984 kB / 0.6003 GB, free: 11.62 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006569/0.7055, allocations: 3.961 MB / 0.6042 GB, free: 7.465 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.258e-05/0.7055, allocations: 12.97 kB / 0.6042 GB, free: 7.453 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001072/0.7066, allocations: 287.6 kB / 0.6044 GB, free: 7.172 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001064/0.7067, allocations: 32.84 kB / 0.6045 GB, free: 7.137 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.934e-05/0.7068, allocations: 32 kB / 0.6045 GB, free: 7.105 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006049/0.7074, allocations: 1.303 MB / 0.6058 GB, free: 5.668 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.064e-06/0.7074, allocations: 15.94 kB / 0.6058 GB, free: 5.652 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004049/0.7115, allocations: 2.987 MB / 0.6087 GB, free: 2.219 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007384/0.7122, allocations: 335 kB / 0.609 GB, free: 1.871 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002046/0.7125, allocations: 39.88 kB / 0.6091 GB, free: 1.832 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001052/0.7135, allocations: 151.9 kB / 0.6092 GB, free: 1.684 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002087/0.7137, allocations: 132.2 kB / 0.6093 GB, free: 1.555 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.259e-05/0.7138, allocations: 40 kB / 0.6094 GB, free: 1.516 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001215/0.715, allocations: 0.9163 MB / 0.6103 GB, free: 0.6016 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.715, allocations: 0 / 0.6103 GB, free: 0.6016 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00206/0.7171, allocations: 0.6914 MB / 0.6109 GB, free: 15.91 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * Number of states: 11 (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) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 109 * 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.006022/0.7231, allocations: 6.612 MB / 0.6174 GB, free: 8.984 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006013/0.7292, allocations: 2.965 MB / 0.6203 GB, free: 5.996 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.857e-06/0.7292, allocations: 4 kB / 0.6203 GB, free: 5.992 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001627/0.7308, allocations: 0.7702 MB / 0.6211 GB, free: 5.215 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001649/0.7325, allocations: 342.7 kB / 0.6214 GB, free: 4.891 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02399/0.7565, allocations: 20.71 MB / 0.6416 GB, free: 15.27 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001065/0.7576, allocations: 1.376 MB / 0.643 GB, free: 13.86 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001844/0.7595, allocations: 292.8 kB / 0.6432 GB, free: 13.57 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001063/0.7606, allocations: 0.7492 MB / 0.644 GB, free: 12.82 MB / 426.7 MB Notification: Performance of SimCode: time 1.242e-06/0.7606, allocations: 0 / 0.644 GB, free: 12.82 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2375/0.9981, allocations: 36.87 MB / 0.68 GB, free: 106.4 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000177/0.9983, allocations: 233.1 kB / 0.6802 GB, free: 106.2 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.188/4.187, allocations: 7.391 kB / 0.6802 GB, free: 106.2 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_PositionControlledDCPM_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_PositionControlledDCPM.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM_res.mat does not exist to compare? outputFormat=mat