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.002069/0.002068, allocations: 181.7 kB / 13.66 MB, free: 1.664 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.232/2.232, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001086/0.001086, allocations: 86.66 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.612e-05/4.622e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1082, allocations: 47.57 MB / 369.2 MB, free: 2.102 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4887/0.597, allocations: 117.2 MB / 486.4 MB, free: 8.336 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003293/0.5974, allocations: 78.89 kB / 486.5 MB, free: 8.297 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2622/0.8596, allocations: 47.12 MB / 0.5211 GB, free: 10.43 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.8597, allocations: 0 / 0.5211 GB, free: 10.43 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003226/0.8601, allocations: 48 kB / 0.5212 GB, free: 10.38 MB / 410.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.01011/0.8702, allocations: 1.929 MB / 0.5231 GB, free: 8.398 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.512e-05/0.8703, allocations: 8.031 kB / 0.5231 GB, free: 8.391 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001235/0.8716, allocations: 274 kB / 0.5233 GB, free: 8.113 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002289/0.8739, allocations: 297 kB / 0.5236 GB, free: 7.82 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006658/0.8806, allocations: 1.261 MB / 0.5248 GB, free: 6.504 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007528/0.8814, allocations: 268.7 kB / 0.5251 GB, free: 6.223 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009911/0.8824, allocations: 195.9 kB / 0.5253 GB, free: 6.031 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009044/0.8915, allocations: 1.773 MB / 0.527 GB, free: 4.203 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000147/0.8917, allocations: 0 / 0.527 GB, free: 4.203 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004748/0.8922, allocations: 80 kB / 0.5271 GB, free: 4.125 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.988e-05/0.8923, allocations: 47.94 kB / 0.5271 GB, free: 4.078 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007909/0.9003, allocations: 1.365 MB / 0.5285 GB, free: 2.711 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3295/1.23, allocations: 7.472 MB / 0.5358 GB, free: 98.86 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003395/1.233, allocations: 1.133 MB / 0.5369 GB, free: 98.45 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001066/1.234, allocations: 365.1 kB / 0.5372 GB, free: 98.45 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000126/1.235, allocations: 11.41 kB / 0.5372 GB, free: 98.45 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.982e-05/1.235, allocations: 43.48 kB / 0.5373 GB, free: 98.41 MB / 410.7 MB Notification: Performance of pre-optimization done (n=84): time 4.789e-06/1.235, allocations: 5 kB / 0.5373 GB, free: 98.41 MB / 410.7 MB Notification: Performance of matching and sorting (n=111): time 0.01955/1.254, allocations: 4.635 MB / 0.5418 GB, free: 97.53 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.781e-05/1.254, allocations: 89.64 kB / 0.5419 GB, free: 97.43 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003045/1.257, allocations: 1.206 MB / 0.5431 GB, free: 97.27 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002941/1.258, allocations: 45.3 kB / 0.5431 GB, free: 97.24 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007968/1.258, allocations: 0.9418 MB / 0.544 GB, free: 96.83 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005916/1.259, allocations: 391.7 kB / 0.5444 GB, free: 96.64 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001766/1.259, allocations: 30.88 kB / 0.5444 GB, free: 96.64 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001442/1.259, allocations: 376.5 kB / 0.5448 GB, free: 96.32 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001725/1.261, allocations: 0.5423 MB / 0.5453 GB, free: 96.32 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001928/1.263, allocations: 0.9759 MB / 0.5463 GB, free: 95.81 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001737/1.265, allocations: 0.5867 MB / 0.5468 GB, free: 95.79 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.621e-05/1.265, allocations: 7.125 kB / 0.5469 GB, free: 95.79 MB / 410.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004728/1.27, allocations: 1.587 MB / 0.5484 GB, free: 95.69 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001201/1.271, allocations: 5.319 MB / 0.5536 GB, free: 90.16 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.349e-05/1.271, allocations: 14.41 kB / 0.5536 GB, free: 90.16 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003399/1.271, allocations: 45.62 kB / 0.5537 GB, free: 90.15 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003912/1.275, allocations: 438.3 kB / 0.5541 GB, free: 90.15 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00117/1.277, allocations: 1.296 MB / 0.5553 GB, free: 88.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00319/1.28, allocations: 175.1 kB / 0.5555 GB, free: 88.89 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003162/1.28, allocations: 66.67 kB / 0.5556 GB, free: 88.89 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/1.28, allocations: 3.781 kB / 0.5556 GB, free: 88.89 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004459/1.285, allocations: 1.499 MB / 0.557 GB, free: 88.85 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.233e-05/1.285, allocations: 13.91 kB / 0.557 GB, free: 88.85 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001603/1.285, allocations: 44.83 kB / 0.5571 GB, free: 88.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003552/1.288, allocations: 417.8 kB / 0.5575 GB, free: 88.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009927/1.29, allocations: 1.286 MB / 0.5587 GB, free: 87.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002189/1.292, allocations: 144.3 kB / 0.5589 GB, free: 87.59 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001756/1.292, allocations: 61.53 kB / 0.5589 GB, free: 87.59 MB / 410.7 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.0005588/1.293, allocations: 203.5 kB / 0.5591 GB, free: 87.47 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005624/1.293, allocations: 170.9 kB / 0.5593 GB, free: 87.38 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003338/1.296, allocations: 1.169 MB / 0.5604 GB, free: 87.29 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.569e-05/1.297, allocations: 12.2 kB / 0.5605 GB, free: 87.29 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/1.297, allocations: 7.188 kB / 0.5605 GB, free: 87.28 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.985e-05/1.297, allocations: 5.297 kB / 0.5605 GB, free: 87.28 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01032/1.307, allocations: 3.571 MB / 0.564 GB, free: 85.99 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.642e-05/1.307, allocations: 9.281 kB / 0.564 GB, free: 85.99 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002322/1.309, allocations: 288.7 kB / 0.5642 GB, free: 85.96 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001792/1.31, allocations: 36.59 kB / 0.5643 GB, free: 85.95 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001254/1.31, allocations: 32 kB / 0.5643 GB, free: 85.94 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009203/1.311, allocations: 1.3 MB / 0.5656 GB, free: 84.62 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.156e-05/1.311, allocations: 12.91 kB / 0.5656 GB, free: 84.62 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004094/1.315, allocations: 2.377 MB / 0.5679 GB, free: 82.6 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001044/1.316, allocations: 335.8 kB / 0.5682 GB, free: 82.35 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003305/1.316, allocations: 31.69 kB / 0.5683 GB, free: 82.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002029/1.318, allocations: 151.7 kB / 0.5684 GB, free: 82.31 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003815/1.319, allocations: 135.2 kB / 0.5685 GB, free: 82.27 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001035/1.319, allocations: 38.69 kB / 0.5686 GB, free: 82.27 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001942/1.321, allocations: 0.9043 MB / 0.5694 GB, free: 81.88 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.71e-07/1.321, allocations: 0 / 0.5694 GB, free: 81.88 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003608/1.324, allocations: 0.6874 MB / 0.5701 GB, free: 81.81 MB / 410.7 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.005353/1.33, allocations: 5.991 MB / 0.576 GB, free: 76.53 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005688/1.335, allocations: 2.322 MB / 0.5782 GB, free: 75.42 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.414e-05/1.336, allocations: 8 kB / 0.5782 GB, free: 75.41 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001535/1.337, allocations: 0.5701 MB / 0.5788 GB, free: 75.12 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002812/1.34, allocations: 344.8 kB / 0.5791 GB, free: 75.01 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009929/1.35, allocations: 3.114 MB / 0.5822 GB, free: 73.39 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001054/1.351, allocations: 1.387 MB / 0.5835 GB, free: 72.64 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001829/1.353, allocations: 0.7632 MB / 0.5843 GB, free: 72.05 MB / 410.7 MB Notification: Performance of SimCode: time 1.233e-06/1.353, allocations: 0 / 0.5843 GB, free: 72.05 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.284/4.637, allocations: 39.87 MB / 0.6232 GB, free: 52.36 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