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.001523/0.001523, allocations: 186.2 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.978/1.978, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001166/0.001166, allocations: 96.41 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003867/0.0003868, allocations: 8 kB / 327.1 MB, free: 112 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3325/0.3329, allocations: 47.58 MB / 374.6 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1953/0.5283, allocations: 117.3 MB / 492 MB, free: 11.34 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003525/0.5288, allocations: 91.95 kB / 492.1 MB, free: 11.25 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4574/0.9862, allocations: 47.11 MB / 0.5265 GB, free: 90.74 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.817e-06/0.9862, allocations: 0 / 0.5265 GB, free: 90.74 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000202/0.9864, allocations: 55.84 kB / 0.5266 GB, free: 90.69 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: 473 * Number of variables: 473 Notification: Performance of Generate backend data structure: time 0.007389/0.9938, allocations: 2.189 MB / 0.5287 GB, free: 88.46 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.952e-05/0.9939, allocations: 8.031 kB / 0.5287 GB, free: 88.45 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009301/0.9949, allocations: 266 kB / 0.529 GB, free: 88.18 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001345/0.9962, allocations: 301 kB / 0.5293 GB, free: 87.88 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00407/1, allocations: 1.28 MB / 0.5305 GB, free: 86.57 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004212/1.001, allocations: 264.7 kB / 0.5308 GB, free: 86.3 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007218/1.002, allocations: 184 kB / 0.531 GB, free: 86.12 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007288/1.009, allocations: 1.933 MB / 0.5328 GB, free: 84.13 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001357/1.009, allocations: 7.891 kB / 0.5328 GB, free: 84.12 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003236/1.009, allocations: 80 kB / 0.5329 GB, free: 84.04 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.091e-05/1.009, allocations: 44 kB / 0.533 GB, free: 84 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007184/1.017, allocations: 1.649 MB / 0.5346 GB, free: 82.35 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01857/1.035, allocations: 7.478 MB / 0.5419 GB, free: 74.61 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004758/1.04, allocations: 1.3 MB / 0.5431 GB, free: 73.23 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001718/1.04, allocations: 12.91 kB / 0.5432 GB, free: 73.22 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.721e-05/1.04, allocations: 43.55 kB / 0.5432 GB, free: 73.17 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 4.9e-06/1.04, allocations: 4 kB / 0.5432 GB, free: 73.17 MB / 378.7 MB Notification: Performance of matching and sorting (n=111): time 0.06024/1.101, allocations: 8.846 MB / 0.5518 GB, free: 64.22 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.862e-05/1.101, allocations: 90.11 kB / 0.5519 GB, free: 64.11 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002818/1.104, allocations: 1.23 MB / 0.5531 GB, free: 62.88 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002645/1.104, allocations: 45.7 kB / 0.5532 GB, free: 62.83 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000659/1.105, allocations: 0.9443 MB / 0.5541 GB, free: 61.88 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004908/1.105, allocations: 394.1 kB / 0.5545 GB, free: 61.5 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001823/1.105, allocations: 32 kB / 0.5545 GB, free: 61.46 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001162/1.105, allocations: 366.8 kB / 0.5549 GB, free: 61.1 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003546/1.109, allocations: 0.7886 MB / 0.5556 GB, free: 60.31 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003839/1.113, allocations: 1.219 MB / 0.5568 GB, free: 58.9 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003577/1.116, allocations: 0.8223 MB / 0.5576 GB, free: 58.07 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.445e-05/1.117, allocations: 4 kB / 0.5576 GB, free: 58.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.008323/1.125, allocations: 2.071 MB / 0.5596 GB, free: 55.99 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001116/1.126, allocations: 5.315 MB / 0.5648 GB, free: 50.26 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.765e-05/1.126, allocations: 12 kB / 0.5648 GB, free: 50.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002751/1.126, allocations: 44.84 kB / 0.5649 GB, free: 50.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003505/1.13, allocations: 443.3 kB / 0.5653 GB, free: 49.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001075/1.131, allocations: 1.307 MB / 0.5666 GB, free: 48.33 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002975/1.134, allocations: 175.9 kB / 0.5668 GB, free: 48.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003084/1.134, allocations: 60 kB / 0.5668 GB, free: 48.1 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/1.134, allocations: 4 kB / 0.5668 GB, free: 48.09 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007421/1.142, allocations: 1.883 MB / 0.5687 GB, free: 46.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.796e-05/1.142, allocations: 12 kB / 0.5687 GB, free: 46.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000134/1.142, allocations: 48.78 kB / 0.5687 GB, free: 46.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003276/1.145, allocations: 411.5 kB / 0.5691 GB, free: 45.74 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009485/1.146, allocations: 1.292 MB / 0.5704 GB, free: 44.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002071/1.149, allocations: 144.1 kB / 0.5705 GB, free: 44.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001907/1.149, allocations: 64 kB / 0.5706 GB, free: 44.12 MB / 378.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 () * Number of clocked 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.001409/1.15, allocations: 491.5 kB / 0.571 GB, free: 43.63 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005035/1.151, allocations: 165.9 kB / 0.5712 GB, free: 43.46 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00715/1.158, allocations: 1.643 MB / 0.5728 GB, free: 41.8 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-05/1.158, allocations: 8 kB / 0.5728 GB, free: 41.79 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/1.158, allocations: 0 / 0.5728 GB, free: 41.79 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.72e-05/1.158, allocations: 11.97 kB / 0.5728 GB, free: 41.78 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01321/1.171, allocations: 3.957 MB / 0.5767 GB, free: 37.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.67e-05/1.171, allocations: 16 kB / 0.5767 GB, free: 37.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002297/1.174, allocations: 296.4 kB / 0.577 GB, free: 37.35 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000177/1.174, allocations: 32.86 kB / 0.577 GB, free: 37.32 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001417/1.174, allocations: 39.94 kB / 0.577 GB, free: 37.28 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009299/1.175, allocations: 1.296 MB / 0.5783 GB, free: 35.85 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.07e-05/1.175, allocations: 15.94 kB / 0.5783 GB, free: 35.83 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0084/1.183, allocations: 2.98 MB / 0.5812 GB, free: 32.41 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001101/1.184, allocations: 335 kB / 0.5816 GB, free: 32.06 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003587/1.185, allocations: 35.98 kB / 0.5816 GB, free: 32.03 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002139/1.187, allocations: 156 kB / 0.5817 GB, free: 31.88 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003929/1.187, allocations: 136 kB / 0.5819 GB, free: 31.74 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001066/1.188, allocations: 47.94 kB / 0.5819 GB, free: 31.7 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002074/1.19, allocations: 0.9167 MB / 0.5828 GB, free: 30.78 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.61e-07/1.19, allocations: 0 / 0.5828 GB, free: 30.78 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003573/1.193, allocations: 0.6913 MB / 0.5835 GB, free: 30.09 MB / 378.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 () * Number of clocked 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.009818/1.203, allocations: 6.602 MB / 0.5899 GB, free: 23.21 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01106/1.214, allocations: 2.973 MB / 0.5928 GB, free: 20.21 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.4e-05/1.214, allocations: 0 / 0.5928 GB, free: 20.21 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003092/1.217, allocations: 0.7698 MB / 0.5936 GB, free: 19.43 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002765/1.22, allocations: 335.8 kB / 0.5939 GB, free: 19.11 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03654/1.257, allocations: 20.82 MB / 0.6142 GB, free: 13.36 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001572/1.258, allocations: 1.388 MB / 0.6156 GB, free: 11.94 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002119/1.26, allocations: 0.7609 MB / 0.6163 GB, free: 11.18 MB / 394.7 MB Notification: Performance of SimCode: time 1.353e-06/1.261, allocations: 0 / 0.6163 GB, free: 11.18 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.47/4.73, allocations: 40.01 MB / 0.6554 GB, free: 113.5 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