Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.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.CurrentControlledDCPM,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001585/0.001585, allocations: 196.9 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.414/1.414, allocations: 225.4 MB / 240.1 MB, free: 15.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008725/0.0008725, allocations: 92.19 kB / 292.1 MB, free: 5.957 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.651e-05/3.662e-05, allocations: 4 kB / 350.6 MB, free: 2.457 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1146, allocations: 51.48 MB / 402.1 MB, free: 14.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4039/0.5186, allocations: 117.8 MB / 0.5078 GB, free: 4.012 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002375/0.5188, allocations: 78.95 kB / 0.5078 GB, free: 3.973 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1017/0.6205, allocations: 39.42 MB / 0.5463 GB, free: 13.77 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.6206, allocations: 4 kB / 0.5463 GB, free: 13.76 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001516/0.6207, allocations: 39.94 kB / 0.5464 GB, free: 13.72 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 375 * Number of variables: 375 Notification: Performance of Generate backend data structure: time 0.003582/0.6243, allocations: 1.51 MB / 0.5479 GB, free: 12.17 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.29e-05/0.6244, allocations: 16.03 kB / 0.5479 GB, free: 12.15 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004411/0.6248, allocations: 207.5 kB / 0.5481 GB, free: 11.94 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008415/0.6257, allocations: 241.7 kB / 0.5483 GB, free: 11.7 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00202/0.6277, allocations: 1.051 MB / 0.5493 GB, free: 10.61 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.646e-05/0.6278, allocations: 111 kB / 0.5494 GB, free: 10.5 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002111/0.628, allocations: 151.9 kB / 0.5496 GB, free: 10.35 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00242/0.6305, allocations: 1.349 MB / 0.5509 GB, free: 8.941 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.249e-05/0.6305, allocations: 7.906 kB / 0.5509 GB, free: 8.934 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001191/0.6306, allocations: 63.98 kB / 0.551 GB, free: 8.871 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.166e-05/0.6307, allocations: 36 kB / 0.551 GB, free: 8.836 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001607/0.6323, allocations: 0.866 MB / 0.5518 GB, free: 7.965 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008006/0.6403, allocations: 6.131 MB / 0.5578 GB, free: 1.531 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001082/0.6414, allocations: 0.6301 MB / 0.5584 GB, free: 0.8555 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003202/0.6418, allocations: 206.2 kB / 0.5586 GB, free: 0.6523 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.647e-05/0.6418, allocations: 12.5 kB / 0.5587 GB, free: 0.6406 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.674e-05/0.6419, allocations: 40.69 kB / 0.5587 GB, free: 0.5938 MB / 426.7 MB Notification: Performance of pre-optimization done (n=51): time 2.545e-06/0.6419, allocations: 0 / 0.5587 GB, free: 0.5938 MB / 426.7 MB Notification: Performance of matching and sorting (n=54): time 0.002424/0.6443, allocations: 1.356 MB / 0.56 GB, free: 15.18 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.25e-05/0.6444, allocations: 81.55 kB / 0.5601 GB, free: 15.08 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001328/0.6457, allocations: 0.9231 MB / 0.561 GB, free: 14.14 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.826e-05/0.6458, allocations: 37.7 kB / 0.561 GB, free: 14.1 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005555/0.6463, allocations: 0.8012 MB / 0.5618 GB, free: 13.29 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001576/0.6465, allocations: 201.2 kB / 0.562 GB, free: 13.09 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.58e-05/0.6465, allocations: 20 kB / 0.562 GB, free: 13.07 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.6467, allocations: 341.9 kB / 0.5624 GB, free: 12.73 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003392/0.647, allocations: 206 kB / 0.5625 GB, free: 12.53 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006136/0.6477, allocations: 0.5823 MB / 0.5631 GB, free: 11.75 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004893/0.6482, allocations: 315.1 kB / 0.5634 GB, free: 11.45 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/0.6482, allocations: 8 kB / 0.5634 GB, free: 11.44 MB / 442.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001394/0.6496, allocations: 0.9281 MB / 0.5643 GB, free: 10.5 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002087/0.6517, allocations: 5.137 MB / 0.5693 GB, free: 4.965 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.095e-05/0.6517, allocations: 12 kB / 0.5694 GB, free: 4.953 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000187/0.6519, allocations: 44.84 kB / 0.5694 GB, free: 4.906 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008059/0.6527, allocations: 233.1 kB / 0.5696 GB, free: 4.68 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001014/0.6537, allocations: 1.302 MB / 0.5709 GB, free: 3.246 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007385/0.6545, allocations: 51.97 kB / 0.5709 GB, free: 3.195 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.234e-05/0.6546, allocations: 48 kB / 0.571 GB, free: 3.148 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.028e-05/0.6546, allocations: 4 kB / 0.571 GB, free: 3.145 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001185/0.6558, allocations: 0.7991 MB / 0.5718 GB, free: 2.344 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.362e-05/0.6558, allocations: 12 kB / 0.5718 GB, free: 2.332 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.977e-05/0.6559, allocations: 36.86 kB / 0.5718 GB, free: 2.293 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006718/0.6566, allocations: 219.6 kB / 0.572 GB, free: 2.078 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008596/0.6574, allocations: 1.292 MB / 0.5733 GB, free: 0.6523 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006262/0.6581, allocations: 39.98 kB / 0.5733 GB, free: 0.6133 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.6e-05/0.6582, allocations: 48 kB / 0.5734 GB, free: 0.5664 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 2 (currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * 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.0001973/0.6584, allocations: 172.7 kB / 0.5735 GB, free: 400 kB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000158/0.6585, allocations: 118.5 kB / 0.5737 GB, free: 280 kB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3213/0.9798, allocations: 0.503 MB / 0.5741 GB, free: 96.34 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.111e-05/0.9799, allocations: 6.219 kB / 0.5742 GB, free: 96.34 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.9799, allocations: 1.906 kB / 0.5742 GB, free: 96.34 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.008e-05/0.9799, allocations: 2.953 kB / 0.5742 GB, free: 96.34 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003118/0.983, allocations: 1.76 MB / 0.5759 GB, free: 95.98 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/0.983, allocations: 3.25 kB / 0.5759 GB, free: 95.98 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004982/0.9835, allocations: 112.9 kB / 0.576 GB, free: 95.98 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.912e-05/0.9837, allocations: 25.77 kB / 0.576 GB, free: 95.97 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.533e-05/0.9837, allocations: 14.59 kB / 0.576 GB, free: 95.97 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007055/0.9844, allocations: 1.273 MB / 0.5773 GB, free: 94.74 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.372e-06/0.9844, allocations: 10.62 kB / 0.5773 GB, free: 94.74 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001114/0.9856, allocations: 0.909 MB / 0.5782 GB, free: 94.42 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003985/0.986, allocations: 248.2 kB / 0.5784 GB, free: 94.32 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001127/0.9861, allocations: 14.94 kB / 0.5784 GB, free: 94.32 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004952/0.9866, allocations: 42.89 kB / 0.5785 GB, free: 94.32 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.756e-05/0.9867, allocations: 37.64 kB / 0.5785 GB, free: 94.32 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.826e-05/0.9867, allocations: 16.59 kB / 0.5785 GB, free: 94.32 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0008777/0.9876, allocations: 0.6938 MB / 0.5792 GB, free: 94.21 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.9876, allocations: 3.375 kB / 0.5792 GB, free: 94.21 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001739/0.9893, allocations: 0.5001 MB / 0.5797 GB, free: 94.21 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 10 (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,loadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 52 * 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.001875/0.9912, allocations: 2.221 MB / 0.5818 GB, free: 92.86 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001963/0.9932, allocations: 1.211 MB / 0.583 GB, free: 92.64 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.19e-06/0.9932, allocations: 0 / 0.583 GB, free: 92.64 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004069/0.9936, allocations: 331.8 kB / 0.5833 GB, free: 92.54 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001292/0.9949, allocations: 258 kB / 0.5836 GB, free: 92.53 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003963/0.9989, allocations: 2.073 MB / 0.5856 GB, free: 91.85 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005994/0.9995, allocations: 1.199 MB / 0.5868 GB, free: 91.14 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001023/1.001, allocations: 192.8 kB / 0.587 GB, free: 91.12 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005355/1.001, allocations: 0.5307 MB / 0.5875 GB, free: 91.12 MB / 442.7 MB Notification: Performance of SimCode: time 1.233e-06/1.001, allocations: 3.656 kB / 0.5875 GB, free: 91.12 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05978/1.061, allocations: 28.25 MB / 0.6151 GB, free: 89.43 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001531/1.061, allocations: 206.8 kB / 0.6153 GB, free: 89.21 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.942/4.003, allocations: 0 / 0.6153 GB, free: 89.21 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat does not exist to compare? outputFormat=mat