Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.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.PositionControlledDCPM,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_ControlledDCDrives_PositionControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM,fileNamePrefix="Modelica_3_2_3_cpp_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 3.2.3+maint.om/package.mo): time 0.002213/0.002212, allocations: 177.8 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.106/2.106, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001069/0.001068, allocations: 92.42 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.167e-05/3.171e-05, allocations: 4 kB / 314.9 MB, free: 9.043 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3442/0.3443, allocations: 47.55 MB / 362.4 MB, free: 45.71 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1916/0.5359, allocations: 116.6 MB / 479 MB, free: 1.547 MB / 363.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003358/0.5363, allocations: 87.89 kB / 479.1 MB, free: 1.461 MB / 363.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.4655/1.002, allocations: 46.24 MB / 0.513 GB, free: 103 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.745e-06/1.002, allocations: 0 / 0.513 GB, free: 103 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0002682/1.002, allocations: 47.31 kB / 0.5131 GB, free: 103 MB / 395.1 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.007746/1.01, allocations: 1.93 MB / 0.515 GB, free: 102 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.105e-05/1.01, allocations: 10.88 kB / 0.515 GB, free: 102 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001909/1.012, allocations: 298.1 kB / 0.5153 GB, free: 101.9 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004835/1.017, allocations: 1.272 MB / 0.5165 GB, free: 101.5 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005612/1.018, allocations: 198.1 kB / 0.5167 GB, free: 101.4 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007781/1.018, allocations: 119.4 kB / 0.5168 GB, free: 101.4 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005739/1.024, allocations: 1.262 MB / 0.518 GB, free: 101.4 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005785/1.03, allocations: 1.509 MB / 0.5195 GB, free: 101.2 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.81e-05/1.03, allocations: 6.594 kB / 0.5195 GB, free: 101.2 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002094/1.03, allocations: 0 / 0.5195 GB, free: 101.2 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.399e-05/1.03, allocations: 44.62 kB / 0.5196 GB, free: 101.2 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01728/1.048, allocations: 7.13 MB / 0.5265 GB, free: 97.74 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003055/1.051, allocations: 1.107 MB / 0.5276 GB, free: 97.06 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009416/1.052, allocations: 345.7 kB / 0.5279 GB, free: 96.91 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001117/1.052, allocations: 14.2 kB / 0.5279 GB, free: 96.91 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.798e-05/1.052, allocations: 54.89 kB / 0.528 GB, free: 96.85 MB / 395.1 MB Notification: Performance of pre-optimization done (n=84): time 4.478e-06/1.052, allocations: 0.5625 kB / 0.528 GB, free: 96.85 MB / 395.1 MB Notification: Performance of matching and sorting (n=111): time 0.01743/1.069, allocations: 4.387 MB / 0.5323 GB, free: 94.88 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.306e-05/1.07, allocations: 88.58 kB / 0.5324 GB, free: 94.79 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002236/1.072, allocations: 1.013 MB / 0.5334 GB, free: 94.32 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002823/1.072, allocations: 25.7 kB / 0.5334 GB, free: 94.29 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006719/1.073, allocations: 0.9727 MB / 0.5343 GB, free: 93.48 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004464/1.073, allocations: 377.9 kB / 0.5347 GB, free: 93.19 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001683/1.073, allocations: 0 / 0.5347 GB, free: 93.19 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.000122/1.074, allocations: 369.3 kB / 0.535 GB, free: 92.85 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001319/1.075, allocations: 0.5156 MB / 0.5355 GB, free: 92.6 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001494/1.076, allocations: 0.9453 MB / 0.5365 GB, free: 91.8 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001365/1.078, allocations: 0.5523 MB / 0.537 GB, free: 91.54 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.209e-05/1.078, allocations: 3.5 kB / 0.537 GB, free: 91.54 MB / 395.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.003604/1.081, allocations: 1.439 MB / 0.5384 GB, free: 90.92 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001129/1.083, allocations: 5.317 MB / 0.5436 GB, free: 85.24 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-05/1.083, allocations: 13.03 kB / 0.5436 GB, free: 85.24 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002946/1.083, allocations: 42.7 kB / 0.5437 GB, free: 85.23 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003577/1.087, allocations: 443.6 kB / 0.5441 GB, free: 85.18 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001033/1.088, allocations: 1.248 MB / 0.5453 GB, free: 83.94 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002987/1.091, allocations: 140.3 kB / 0.5454 GB, free: 83.93 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002933/1.091, allocations: 65.02 kB / 0.5455 GB, free: 83.92 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/1.091, allocations: 2.875 kB / 0.5455 GB, free: 83.92 MB / 395.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003446/1.095, allocations: 1.314 MB / 0.5468 GB, free: 83.38 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.481e-05/1.095, allocations: 14.47 kB / 0.5468 GB, free: 83.38 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001414/1.095, allocations: 50.34 kB / 0.5468 GB, free: 83.36 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003265/1.098, allocations: 411.2 kB / 0.5472 GB, free: 83.32 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009047/1.099, allocations: 1.245 MB / 0.5485 GB, free: 82.07 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002089/1.101, allocations: 110.3 kB / 0.5486 GB, free: 82.06 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000189/1.101, allocations: 68.17 kB / 0.5486 GB, free: 82.05 MB / 395.1 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 () * 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.0004608/1.102, allocations: 147.2 kB / 0.5488 GB, free: 81.91 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002769/1.105, allocations: 1.003 MB / 0.5497 GB, free: 81.45 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005031/1.105, allocations: 152.2 kB / 0.5499 GB, free: 81.37 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00294/1.108, allocations: 1.085 MB / 0.551 GB, free: 80.88 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.697e-05/1.108, allocations: 16.28 kB / 0.551 GB, free: 80.88 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/1.108, allocations: 0 / 0.551 GB, free: 80.88 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.505e-05/1.108, allocations: 3.422 kB / 0.551 GB, free: 80.88 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009408/1.118, allocations: 3.241 MB / 0.5541 GB, free: 79.25 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-05/1.118, allocations: 10.72 kB / 0.5541 GB, free: 79.25 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002318/1.12, allocations: 290.4 kB / 0.5544 GB, free: 79.22 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001843/1.12, allocations: 37.05 kB / 0.5545 GB, free: 79.21 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001475/1.121, allocations: 23.25 kB / 0.5545 GB, free: 79.2 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009022/1.121, allocations: 1.233 MB / 0.5557 GB, free: 77.96 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.367e-05/1.121, allocations: 18.59 kB / 0.5557 GB, free: 77.95 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003688/1.125, allocations: 2.254 MB / 0.5579 GB, free: 75.96 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001102/1.126, allocations: 322.4 kB / 0.5582 GB, free: 75.72 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003473/1.127, allocations: 16.12 kB / 0.5582 GB, free: 75.72 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002257/1.129, allocations: 129 kB / 0.5583 GB, free: 75.71 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004951/1.13, allocations: 134.9 kB / 0.5585 GB, free: 75.68 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000114/1.13, allocations: 43.75 kB / 0.5585 GB, free: 75.66 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.00166/1.131, allocations: 0.7399 MB / 0.5592 GB, free: 75.32 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.063e-06/1.131, allocations: 0 / 0.5592 GB, free: 75.32 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.003647/1.135, allocations: 0.5685 MB / 0.5598 GB, free: 75.31 MB / 395.1 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 () * 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.004955/1.14, allocations: 5.878 MB / 0.5655 GB, free: 69.48 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.005091/1.145, allocations: 2.187 MB / 0.5677 GB, free: 67.33 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 1.518e-05/1.145, allocations: 4.062 kB / 0.5677 GB, free: 67.32 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00149/1.147, allocations: 0.535 MB / 0.5682 GB, free: 66.8 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002754/1.15, allocations: 303.8 kB / 0.5685 GB, free: 66.57 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009967/1.16, allocations: 2.983 MB / 0.5714 GB, free: 63.71 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001056/1.161, allocations: 1.382 MB / 0.5728 GB, free: 62.58 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001826/1.163, allocations: 0.7665 MB / 0.5735 GB, free: 61.87 MB / 395.1 MB Notification: Performance of SimCode: time 2.354e-06/1.163, allocations: 112 / 0.5735 GB, free: 61.87 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.349/4.511, allocations: 38.91 MB / 0.6115 GB, free: 25.69 MB / 395.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_ControlledDCDrives_PositionControlledDCPM_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_ControlledDCDrives_PositionControlledDCPM.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM_res.mat does not exist to compare? outputFormat=mat