Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.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.CurrentControlledDCPM,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001092/0.001092, allocations: 181.1 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.349/1.349, allocations: 223.2 MB / 240.3 MB, free: 11.89 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.0008609/0.0008608, allocations: 90.7 kB / 291.5 MB, free: 10.9 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002464/0.0002464, allocations: 4 kB / 351.2 MB, free: 15.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2052/0.2055, allocations: 50.41 MB / 401.6 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3102/0.5157, allocations: 116.2 MB / 0.5057 GB, free: 101.3 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004342/0.5162, allocations: 88.05 kB / 0.5058 GB, free: 101.3 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1007/0.6169, allocations: 39.64 MB / 0.5445 GB, free: 70.28 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.354e-06/0.617, allocations: 0 / 0.5445 GB, free: 70.28 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001366/0.6171, allocations: 36 kB / 0.5445 GB, free: 70.24 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: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.004374/0.6215, allocations: 1.751 MB / 0.5462 GB, free: 68.43 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.6216, allocations: 12.03 kB / 0.5462 GB, free: 68.42 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005533/0.6221, allocations: 215.5 kB / 0.5464 GB, free: 68.2 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009365/0.6231, allocations: 249.6 kB / 0.5467 GB, free: 67.95 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002114/0.6252, allocations: 1.059 MB / 0.5477 GB, free: 66.85 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.93e-05/0.6253, allocations: 111 kB / 0.5478 GB, free: 66.74 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00023/0.6255, allocations: 155.9 kB / 0.548 GB, free: 66.59 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002392/0.6279, allocations: 1.419 MB / 0.5493 GB, free: 65.11 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.205e-05/0.628, allocations: 11.84 kB / 0.5493 GB, free: 65.1 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001123/0.6281, allocations: 64 kB / 0.5494 GB, free: 65.04 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.355e-05/0.6281, allocations: 36 kB / 0.5494 GB, free: 65 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001767/0.6299, allocations: 0.9712 MB / 0.5504 GB, free: 64.03 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006967/0.6369, allocations: 6.221 MB / 0.5565 GB, free: 57.5 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009945/0.6379, allocations: 0.6702 MB / 0.5571 GB, free: 56.78 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.704e-05/0.638, allocations: 8.438 kB / 0.5571 GB, free: 56.77 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.123e-05/0.638, allocations: 39 kB / 0.5572 GB, free: 56.72 MB / 378.7 MB Notification: Performance of pre-optimization done (n=51): time 2.745e-06/0.638, allocations: 0 / 0.5572 GB, free: 56.72 MB / 378.7 MB Notification: Performance of matching and sorting (n=54): time 0.002831/0.6408, allocations: 1.751 MB / 0.5589 GB, free: 54.9 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.435e-05/0.6409, allocations: 85.5 kB / 0.559 GB, free: 54.8 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001175/0.6421, allocations: 0.9495 MB / 0.5599 GB, free: 53.84 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.507e-05/0.6421, allocations: 41.7 kB / 0.5599 GB, free: 53.79 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000348/0.6425, allocations: 0.8053 MB / 0.5607 GB, free: 52.97 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001073/0.6426, allocations: 209 kB / 0.5609 GB, free: 52.77 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.18e-05/0.6426, allocations: 20 kB / 0.5609 GB, free: 52.75 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.3e-05/0.6427, allocations: 341.9 kB / 0.5613 GB, free: 52.41 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004153/0.6431, allocations: 249.9 kB / 0.5615 GB, free: 52.16 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000551/0.6437, allocations: 0.6251 MB / 0.5621 GB, free: 51.36 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005306/0.6442, allocations: 346 kB / 0.5624 GB, free: 51.02 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.642e-06/0.6442, allocations: 4 kB / 0.5624 GB, free: 51.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001429/0.6457, allocations: 1.01 MB / 0.5634 GB, free: 50 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008451/0.6465, allocations: 5.149 MB / 0.5685 GB, free: 44.45 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.03e-05/0.6465, allocations: 12 kB / 0.5685 GB, free: 44.44 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001621/0.6467, allocations: 40.84 kB / 0.5685 GB, free: 44.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006909/0.6474, allocations: 231.7 kB / 0.5687 GB, free: 44.17 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006988/0.6481, allocations: 1.304 MB / 0.57 GB, free: 42.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007181/0.6489, allocations: 55.88 kB / 0.5701 GB, free: 42.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.474e-05/0.6489, allocations: 48 kB / 0.5701 GB, free: 42.63 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.857e-06/0.6489, allocations: 6.656 kB / 0.5701 GB, free: 42.63 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001086/0.65, allocations: 0.8225 MB / 0.5709 GB, free: 41.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.074e-05/0.6501, allocations: 12 kB / 0.5709 GB, free: 41.79 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.523e-05/0.6502, allocations: 44.8 kB / 0.571 GB, free: 41.74 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006112/0.6508, allocations: 216.2 kB / 0.5712 GB, free: 41.53 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005776/0.6514, allocations: 1.303 MB / 0.5724 GB, free: 40.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006672/0.652, allocations: 40.25 kB / 0.5725 GB, free: 40.06 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.495e-05/0.6521, allocations: 44 kB / 0.5725 GB, free: 40.02 MB / 378.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 () * Number of clocked 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.0006145/0.6527, allocations: 412.7 kB / 0.5729 GB, free: 39.6 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001553/0.6529, allocations: 118.5 kB / 0.573 GB, free: 39.48 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009565/0.6539, allocations: 0.5788 MB / 0.5736 GB, free: 38.9 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.6539, allocations: 4 kB / 0.5736 GB, free: 38.89 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.387e-06/0.6539, allocations: 0 / 0.5736 GB, free: 38.89 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.6539, allocations: 8 kB / 0.5736 GB, free: 38.89 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002968/0.6569, allocations: 1.847 MB / 0.5754 GB, free: 36.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/0.6569, allocations: 4.047 kB / 0.5754 GB, free: 36.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004821/0.6574, allocations: 115.9 kB / 0.5755 GB, free: 36.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001001/0.6575, allocations: 28.75 kB / 0.5755 GB, free: 36.81 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.269e-05/0.6575, allocations: 20.2 kB / 0.5756 GB, free: 36.79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000662/0.6582, allocations: 1.276 MB / 0.5768 GB, free: 35.38 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.6582, allocations: 4.062 kB / 0.5768 GB, free: 35.37 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001369/0.6596, allocations: 1.029 MB / 0.5778 GB, free: 34.27 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005015/0.6601, allocations: 235.6 kB / 0.578 GB, free: 34.02 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001905/0.6603, allocations: 19.98 kB / 0.5781 GB, free: 34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005566/0.6609, allocations: 39.98 kB / 0.5781 GB, free: 33.96 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.768e-05/0.661, allocations: 36.34 kB / 0.5781 GB, free: 33.92 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.125e-05/0.661, allocations: 20.08 kB / 0.5782 GB, free: 33.9 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001029/0.6621, allocations: 0.7164 MB / 0.5789 GB, free: 33.18 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6621, allocations: 0 / 0.5789 GB, free: 33.18 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001905/0.664, allocations: 0.5077 MB / 0.5794 GB, free: 32.67 MB / 378.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 () * Number of clocked 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.002104/0.6661, allocations: 2.351 MB / 0.5817 GB, free: 30.25 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002169/0.6683, allocations: 1.257 MB / 0.5829 GB, free: 28.97 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/0.6683, allocations: 0 / 0.5829 GB, free: 28.97 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004597/0.6688, allocations: 362 kB / 0.5832 GB, free: 28.61 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0013/0.6701, allocations: 261.4 kB / 0.5835 GB, free: 28.36 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01284/0.6829, allocations: 16.15 MB / 0.5992 GB, free: 11.64 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007021/0.6837, allocations: 1.2 MB / 0.6004 GB, free: 10.41 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0007518/0.6844, allocations: 161.2 kB / 0.6006 GB, free: 10.25 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005849/0.685, allocations: 0.5579 MB / 0.6011 GB, free: 9.699 MB / 378.7 MB Notification: Performance of SimCode: time 1.062e-06/0.685, allocations: 0 / 0.6011 GB, free: 9.699 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04947/0.7345, allocations: 26.83 MB / 0.6273 GB, free: 15.22 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002074/0.7348, allocations: 226.2 kB / 0.6275 GB, free: 14.98 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.713/3.448, allocations: 4 kB / 0.6275 GB, free: 14.98 MB / 410.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat does not exist to compare? outputFormat=mat