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.001713/0.001718, allocations: 186.7 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.107/2.107, allocations: 205.4 MB / 222.5 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00112/0.00112, allocations: 90.86 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003793/0.0003795, allocations: 11.98 kB / 327.1 MB, free: 14.98 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09537/0.09579, allocations: 47.57 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.02149/0.1174, allocations: 12.37 MB / 387 MB, free: 2.918 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.2815/0.3989, allocations: 5.493 MB / 392.5 MB, free: 9.242 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003363/0.4024, allocations: 69.91 kB / 392.6 MB, free: 9.242 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004557/0.407, allocations: 0.8713 MB / 393.4 MB, free: 9.238 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005448/0.4125, allocations: 0.9333 MB / 394.4 MB, free: 9.23 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003986/0.4165, allocations: 0.6769 MB / 395 MB, free: 9.223 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.005912/0.4224, allocations: 1.794 MB / 396.8 MB, free: 9.219 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002364/0.4249, allocations: 0.9023 MB / 397.7 MB, free: 9.031 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002478/0.4274, allocations: 0.7915 MB / 398.5 MB, free: 8.98 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002452/0.4299, allocations: 0.82 MB / 399.4 MB, free: 8.762 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006197/0.4306, allocations: 99.91 kB / 399.4 MB, free: 8.758 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008998/0.4315, allocations: 96.28 kB / 399.5 MB, free: 8.758 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000439/0.4319, allocations: 336.1 kB / 399.9 MB, free: 8.684 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000855/0.4328, allocations: 419.3 kB / 400.3 MB, free: 8.582 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004617/0.4374, allocations: 2.428 MB / 402.7 MB, free: 8.02 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.4375, allocations: 0.9062 kB / 402.7 MB, free: 8.02 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.116e-06/0.4375, allocations: 0 / 402.7 MB, free: 8.02 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001258/0.4377, allocations: 0 / 402.7 MB, free: 8.02 MB / 282.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.007344/0.445, allocations: 2.123 MB / 404.8 MB, free: 6.684 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.319e-05/0.4451, allocations: 13.41 kB / 404.8 MB, free: 6.68 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007032/0.4458, allocations: 273.5 kB / 405.1 MB, free: 6.582 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006402/0.4465, allocations: 253.6 kB / 405.4 MB, free: 6.457 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003256/0.4497, allocations: 1.174 MB / 406.5 MB, free: 5.82 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004179/0.4502, allocations: 263 kB / 406.8 MB, free: 5.711 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000496/0.4507, allocations: 190 kB / 407 MB, free: 5.707 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006088/0.4568, allocations: 1.924 MB / 408.9 MB, free: 5.148 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.393e-05/0.4569, allocations: 13.5 kB / 408.9 MB, free: 5.145 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002463/0.4572, allocations: 77.62 kB / 409 MB, free: 5.129 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.839e-05/0.4573, allocations: 44.84 kB / 409 MB, free: 5.129 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00659/0.4639, allocations: 1.623 MB / 410.7 MB, free: 4.375 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01599/0.4799, allocations: 7.285 MB / 417.9 MB, free: 14.5 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004716/0.4847, allocations: 1.255 MB / 419.2 MB, free: 13.68 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001172/0.4848, allocations: 17.62 kB / 419.2 MB, free: 13.67 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.78e-05/0.4849, allocations: 46.5 kB / 419.3 MB, free: 13.62 MB / 298.7 MB Notification: Performance of pre-optimization done (n=83): time 4.118e-06/0.4849, allocations: 0 / 419.3 MB, free: 13.62 MB / 298.7 MB Notification: Performance of matching and sorting (n=110): time 0.06333/0.5483, allocations: 8.817 MB / 428.1 MB, free: 6.145 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.468e-05/0.5484, allocations: 64.41 kB / 428.1 MB, free: 6.066 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002853/0.5512, allocations: 1.217 MB / 429.4 MB, free: 4.84 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002765/0.5516, allocations: 49.7 kB / 429.4 MB, free: 4.785 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009815/0.5526, allocations: 0.9618 MB / 430.4 MB, free: 3.816 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006043/0.5532, allocations: 395.9 kB / 430.8 MB, free: 3.434 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001517/0.5533, allocations: 28 kB / 430.8 MB, free: 3.406 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002237/0.5536, allocations: 371.9 kB / 431.1 MB, free: 3.035 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003846/0.5574, allocations: 0.7691 MB / 431.9 MB, free: 2.266 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004334/0.5618, allocations: 1.225 MB / 433.1 MB, free: 0.8438 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003947/0.5658, allocations: 0.8086 MB / 433.9 MB, free: 36 kB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.865e-05/0.5659, allocations: 4 kB / 434 MB, free: 32 kB / 298.7 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.009245/0.5752, allocations: 2.14 MB / 436.1 MB, free: 13.86 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002812/0.578, allocations: 5.746 MB / 441.8 MB, free: 7.672 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.915e-05/0.5781, allocations: 20 kB / 441.9 MB, free: 7.652 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002864/0.5784, allocations: 40.84 kB / 441.9 MB, free: 7.609 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003811/0.5822, allocations: 435.4 kB / 442.3 MB, free: 7.184 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001539/0.5838, allocations: 1.288 MB / 443.6 MB, free: 5.766 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002892/0.5867, allocations: 172.1 kB / 443.8 MB, free: 5.598 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002726/0.5871, allocations: 67.98 kB / 443.8 MB, free: 5.531 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.892e-05/0.5871, allocations: 4 kB / 443.8 MB, free: 5.527 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008326/0.5954, allocations: 1.954 MB / 445.8 MB, free: 3.551 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.488e-05/0.5955, allocations: 12 kB / 445.8 MB, free: 3.539 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001614/0.5957, allocations: 45.34 kB / 445.9 MB, free: 3.492 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003544/0.5993, allocations: 419.3 kB / 446.3 MB, free: 3.082 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001388/0.6007, allocations: 1.288 MB / 447.6 MB, free: 1.656 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002206/0.603, allocations: 148 kB / 447.7 MB, free: 1.512 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002098/0.6032, allocations: 67.95 kB / 447.8 MB, free: 1.445 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 5 (kinematicPTP.moving[1],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 (196): * Single equations (assignments): 195 * 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.001608/0.6048, allocations: 480.6 kB / 448.2 MB, free: 0.9648 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000558/0.6054, allocations: 154 kB / 448.4 MB, free: 0.8125 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007888/0.6133, allocations: 1.683 MB / 450.1 MB, free: 15.1 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.267e-05/0.6134, allocations: 13.86 kB / 450.1 MB, free: 15.09 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.727e-06/0.6134, allocations: 3.953 kB / 450.1 MB, free: 15.08 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.873e-05/0.6134, allocations: 7.969 kB / 450.1 MB, free: 15.07 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01588/0.6293, allocations: 3.9 MB / 454 MB, free: 10.98 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.058e-05/0.6294, allocations: 12.97 kB / 454 MB, free: 10.97 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002537/0.632, allocations: 291.6 kB / 454.3 MB, free: 10.69 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001723/0.6322, allocations: 32.84 kB / 454.3 MB, free: 10.65 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001616/0.6324, allocations: 32 kB / 454.4 MB, free: 10.62 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001362/0.6337, allocations: 1.276 MB / 455.6 MB, free: 9.215 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.46e-05/0.6338, allocations: 15.94 kB / 455.6 MB, free: 9.199 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009759/0.6436, allocations: 2.983 MB / 458.6 MB, free: 5.754 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001127/0.6447, allocations: 315 kB / 458.9 MB, free: 5.426 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000342/0.6451, allocations: 36 kB / 459 MB, free: 5.391 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00198/0.6471, allocations: 139.9 kB / 459.1 MB, free: 5.254 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004548/0.6476, allocations: 128.2 kB / 459.2 MB, free: 5.129 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001253/0.6477, allocations: 43.98 kB / 459.3 MB, free: 5.086 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002036/0.6498, allocations: 0.7947 MB / 460.1 MB, free: 4.293 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.92e-07/0.6498, allocations: 0 / 460.1 MB, free: 4.293 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003685/0.6535, allocations: 0.6094 MB / 460.7 MB, free: 3.684 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * Number of states: 11 (loadInertia.w,speedSensor.flange.phi,dcpm.la.i,armatureInverter.vDCFilter.y,armatureInverter.iMotFilter.y,armatureInverter.idealDcDc.deadTime.y,armatureInverter.idealDcDc.powerController.y,armatureInverter.vMotFilter.y,armatureInverter.iDCFilter.y,currentController.integrator.y,speedController.integrator.y) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 108 * 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.01134/0.6649, allocations: 6.348 MB / 467 MB, free: 13.01 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01207/0.677, allocations: 2.92 MB / 469.9 MB, free: 10.07 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.971e-05/0.6771, allocations: 10.31 kB / 470 MB, free: 10.06 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003284/0.6804, allocations: 0.7574 MB / 470.7 MB, free: 9.289 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002807/0.6832, allocations: 314.2 kB / 471 MB, free: 8.98 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04378/0.7271, allocations: 21.14 MB / 492.2 MB, free: 2.926 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001549/0.7287, allocations: 1.384 MB / 493.5 MB, free: 1.508 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002035/0.7307, allocations: 0.7531 MB / 494.3 MB, free: 0.7539 MB / 362.7 MB Notification: Performance of SimCode: time 1.583e-06/0.7308, allocations: 0 / 494.3 MB, free: 0.7539 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.479/4.21, allocations: 37.65 MB / 0.5195 GB, free: 11.03 MB / 410.7 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