Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.0009089/0.0009089, allocations: 178.4 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.479/1.479, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008154/0.0008154, allocations: 82.38 kB / 262.4 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.752e-05/1.749e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08342/0.08346, allocations: 47.59 MB / 363.2 MB, free: 6.977 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3426/0.4261, allocations: 114.9 MB / 478.1 MB, free: 12.88 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003097/0.4265, allocations: 90.55 kB / 478.1 MB, free: 12.83 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09815/0.5246, allocations: 38.68 MB / 0.5047 GB, free: 11.67 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.056e-06/0.5247, allocations: 0 / 0.5047 GB, free: 11.67 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.346e-05/0.5248, allocations: 39.94 kB / 0.5048 GB, free: 11.63 MB / 394.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.002669/0.5274, allocations: 1.526 MB / 0.5062 GB, free: 10.05 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/0.5275, allocations: 12.03 kB / 0.5063 GB, free: 10.04 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006777/0.5282, allocations: 249.6 kB / 0.5065 GB, free: 9.797 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001849/0.53, allocations: 1.063 MB / 0.5075 GB, free: 8.688 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.631e-05/0.5301, allocations: 48 kB / 0.5076 GB, free: 8.641 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001827/0.5303, allocations: 95.97 kB / 0.5077 GB, free: 8.547 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001571/0.5319, allocations: 0.8026 MB / 0.5085 GB, free: 7.742 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00205/0.5339, allocations: 1.148 MB / 0.5096 GB, free: 6.539 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.189e-05/0.534, allocations: 11.89 kB / 0.5096 GB, free: 6.527 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.621e-05/0.5341, allocations: 0 / 0.5096 GB, free: 6.527 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.312e-05/0.5341, allocations: 36 kB / 0.5096 GB, free: 6.492 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007519/0.5416, allocations: 5.943 MB / 0.5154 GB, free: 264 kB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009684/0.5426, allocations: 0.6088 MB / 0.516 GB, free: 15.6 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002752/0.5429, allocations: 198.1 kB / 0.5162 GB, free: 15.41 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.616e-05/0.543, allocations: 4.438 kB / 0.5162 GB, free: 15.4 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.859e-05/0.543, allocations: 43 kB / 0.5163 GB, free: 15.35 MB / 410.7 MB Notification: Performance of pre-optimization done (n=51): time 2.274e-06/0.543, allocations: 0 / 0.5163 GB, free: 15.35 MB / 410.7 MB Notification: Performance of matching and sorting (n=54): time 0.002006/0.545, allocations: 1.269 MB / 0.5175 GB, free: 14.02 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.081e-05/0.5451, allocations: 85.48 kB / 0.5176 GB, free: 13.92 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001072/0.5462, allocations: 0.8129 MB / 0.5184 GB, free: 13.09 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.385e-05/0.5462, allocations: 25.7 kB / 0.5184 GB, free: 13.06 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005366/0.5468, allocations: 0.8089 MB / 0.5192 GB, free: 12.24 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001403/0.5469, allocations: 201.2 kB / 0.5194 GB, free: 12.04 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.796e-05/0.547, allocations: 0 / 0.5194 GB, free: 12.04 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000143/0.5471, allocations: 341.9 kB / 0.5197 GB, free: 11.7 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003372/0.5474, allocations: 190.6 kB / 0.5199 GB, free: 11.51 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006317/0.5481, allocations: 0.571 MB / 0.5204 GB, free: 10.75 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004484/0.5485, allocations: 285.9 kB / 0.5207 GB, free: 10.48 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.171e-06/0.5486, allocations: 4 kB / 0.5207 GB, free: 10.47 MB / 410.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001311/0.5499, allocations: 0.8234 MB / 0.5215 GB, free: 9.637 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002468/0.5524, allocations: 5.133 MB / 0.5265 GB, free: 4.102 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.148e-05/0.5524, allocations: 12 kB / 0.5265 GB, free: 4.09 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001851/0.5526, allocations: 40.86 kB / 0.5266 GB, free: 4.047 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007817/0.5534, allocations: 231.6 kB / 0.5268 GB, free: 3.82 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001118/0.5545, allocations: 1.244 MB / 0.528 GB, free: 2.465 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007103/0.5552, allocations: 32.14 kB / 0.5281 GB, free: 2.434 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.316e-05/0.5553, allocations: 48 kB / 0.5281 GB, free: 2.387 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.057e-06/0.5553, allocations: 7.938 kB / 0.5281 GB, free: 2.379 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001107/0.5564, allocations: 0.6621 MB / 0.5288 GB, free: 1.711 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.39e-05/0.5564, allocations: 12.88 kB / 0.5288 GB, free: 1.699 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.525e-05/0.5566, allocations: 44.84 kB / 0.5288 GB, free: 1.652 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006648/0.5572, allocations: 215.7 kB / 0.529 GB, free: 1.441 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008547/0.5581, allocations: 1.244 MB / 0.5302 GB, free: 80 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000581/0.5587, allocations: 23.89 kB / 0.5303 GB, free: 56 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.905e-05/0.5588, allocations: 44 kB / 0.5303 GB, free: 12 kB / 410.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.2526/0.8113, allocations: 137.8 kB / 0.5304 GB, free: 107.7 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001389/0.8127, allocations: 456 kB / 0.5309 GB, free: 107.7 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004013/0.8132, allocations: 108.3 kB / 0.531 GB, free: 107.7 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001275/0.8145, allocations: 475.5 kB / 0.5314 GB, free: 107.6 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.039e-05/0.8145, allocations: 4.875 kB / 0.5314 GB, free: 107.6 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.416e-06/0.8145, allocations: 5.031 kB / 0.5314 GB, free: 107.6 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.459e-05/0.8145, allocations: 4.375 kB / 0.5314 GB, free: 107.6 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003801/0.8183, allocations: 1.556 MB / 0.533 GB, free: 107.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.113e-06/0.8184, allocations: 3.312 kB / 0.533 GB, free: 107.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005702/0.8189, allocations: 116.4 kB / 0.5331 GB, free: 107.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001174/0.8191, allocations: 25.47 kB / 0.5331 GB, free: 107.2 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.585e-05/0.8191, allocations: 5.578 kB / 0.5331 GB, free: 107.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006782/0.8198, allocations: 1.229 MB / 0.5343 GB, free: 106.1 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/0.8198, allocations: 2.219 kB / 0.5343 GB, free: 106.1 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001174/0.821, allocations: 0.8756 MB / 0.5352 GB, free: 105.8 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003866/0.8214, allocations: 229.2 kB / 0.5354 GB, free: 105.7 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001178/0.8215, allocations: 7.469 kB / 0.5354 GB, free: 105.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004979/0.8221, allocations: 37.98 kB / 0.5354 GB, free: 105.7 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.669e-05/0.8222, allocations: 36.05 kB / 0.5354 GB, free: 105.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.266e-05/0.8222, allocations: 16.53 kB / 0.5355 GB, free: 105.7 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0009207/0.8231, allocations: 0.5969 MB / 0.536 GB, free: 105.5 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.082e-06/0.8231, allocations: 0 / 0.536 GB, free: 105.5 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001902/0.825, allocations: 432.2 kB / 0.5365 GB, free: 105.5 MB / 410.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.002182/0.8272, allocations: 2.149 MB / 0.5386 GB, free: 104.2 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002082/0.8293, allocations: 1.108 MB / 0.5396 GB, free: 104 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.8293, allocations: 0.9688 kB / 0.5396 GB, free: 104 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003931/0.8297, allocations: 306.8 kB / 0.5399 GB, free: 103.9 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001144/0.8309, allocations: 230 kB / 0.5402 GB, free: 103.9 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004343/0.8353, allocations: 2.03 MB / 0.5421 GB, free: 103.2 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008845/0.8362, allocations: 1.203 MB / 0.5433 GB, free: 102.5 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0009752/0.8371, allocations: 191 kB / 0.5435 GB, free: 102.4 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006356/0.8378, allocations: 0.5464 MB / 0.544 GB, free: 102.4 MB / 410.7 MB Notification: Performance of SimCode: time 4.41e-07/0.8378, allocations: 1 kB / 0.544 GB, free: 102.4 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05318/0.891, allocations: 23.25 MB / 0.5667 GB, free: 100.8 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002106/0.8912, allocations: 175.9 kB / 0.5669 GB, free: 100.6 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.612/3.503, allocations: 4 kB / 0.5669 GB, free: 100.6 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat does not exist to compare? outputFormat=mat