Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001611/0.001611, allocations: 178 kB / 8.699 MB, free: 384 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.712/1.712, allocations: 205.3 MB / 214.4 MB, free: 1.742 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.0007956/0.0007956, allocations: 78.72 kB / 262.4 MB, free: 1.691 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.827e-05/1.829e-05, allocations: 0 / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1038, allocations: 47.58 MB / 363.2 MB, free: 6.977 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4098/0.5137, allocations: 116.8 MB / 480 MB, free: 10.94 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002359/0.514, allocations: 87.5 kB / 480.1 MB, free: 10.89 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1201/0.6341, allocations: 46.25 MB / 0.514 GB, free: 2.16 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.6342, allocations: 0 / 0.514 GB, free: 2.16 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001417/0.6343, allocations: 51.98 kB / 0.514 GB, free: 2.109 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: 473 * Number of variables: 473 Notification: Performance of Generate backend data structure: time 0.004008/0.6383, allocations: 1.929 MB / 0.5159 GB, free: 132 kB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.429e-05/0.6384, allocations: 12.03 kB / 0.5159 GB, free: 120 kB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009487/0.6393, allocations: 297 kB / 0.5162 GB, free: 15.82 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002432/0.6418, allocations: 1.265 MB / 0.5175 GB, free: 14.5 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002619/0.6421, allocations: 204.8 kB / 0.5177 GB, free: 14.29 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002141/0.6423, allocations: 115.9 kB / 0.5178 GB, free: 14.17 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002412/0.6447, allocations: 1.261 MB / 0.519 GB, free: 12.91 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002652/0.6474, allocations: 1.512 MB / 0.5205 GB, free: 11.34 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.234e-05/0.6474, allocations: 0 / 0.5205 GB, free: 11.34 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000117/0.6475, allocations: 4 kB / 0.5205 GB, free: 11.34 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-05/0.6476, allocations: 44 kB / 0.5205 GB, free: 11.3 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01041/0.658, allocations: 7.131 MB / 0.5275 GB, free: 3.859 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001921/0.66, allocations: 1.104 MB / 0.5286 GB, free: 2.676 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005141/0.6605, allocations: 347.1 kB / 0.5289 GB, free: 2.336 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.013e-05/0.6606, allocations: 16.78 kB / 0.5289 GB, free: 2.32 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.195e-05/0.6606, allocations: 43.34 kB / 0.529 GB, free: 2.27 MB / 410.7 MB Notification: Performance of pre-optimization done (n=84): time 2.815e-06/0.6606, allocations: 0 / 0.529 GB, free: 2.27 MB / 410.7 MB Notification: Performance of matching and sorting (n=111): time 0.2318/0.8924, allocations: 4.386 MB / 0.5332 GB, free: 104.2 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.192e-05/0.8925, allocations: 90.11 kB / 0.5333 GB, free: 104.1 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001665/0.8942, allocations: 1.013 MB / 0.5343 GB, free: 103.9 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.972e-05/0.8943, allocations: 28.83 kB / 0.5343 GB, free: 103.9 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006115/0.8949, allocations: 0.9881 MB / 0.5353 GB, free: 103.5 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000279/0.8952, allocations: 379.8 kB / 0.5357 GB, free: 103.3 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.514e-05/0.8953, allocations: 1.641 kB / 0.5357 GB, free: 103.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.8954, allocations: 368.8 kB / 0.536 GB, free: 103 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008125/0.8962, allocations: 0.5124 MB / 0.5365 GB, free: 103 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001013/0.8972, allocations: 0.9428 MB / 0.5374 GB, free: 102.5 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008867/0.8981, allocations: 0.5485 MB / 0.538 GB, free: 102.5 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.119e-05/0.8981, allocations: 7.703 kB / 0.538 GB, free: 102.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.002813/0.9009, allocations: 1.526 MB / 0.5395 GB, free: 102.4 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009138/0.9019, allocations: 5.361 MB / 0.5447 GB, free: 96.86 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.191e-05/0.9019, allocations: 13.75 kB / 0.5447 GB, free: 96.86 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001715/0.9021, allocations: 48.56 kB / 0.5448 GB, free: 96.85 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001886/0.904, allocations: 436.3 kB / 0.5452 GB, free: 96.85 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007793/0.9048, allocations: 1.248 MB / 0.5464 GB, free: 95.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001645/0.9064, allocations: 140.9 kB / 0.5465 GB, free: 95.66 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001259/0.9066, allocations: 62.61 kB / 0.5466 GB, free: 95.66 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.082e-05/0.9066, allocations: 4.438 kB / 0.5466 GB, free: 95.66 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002253/0.9088, allocations: 1.319 MB / 0.5479 GB, free: 95.61 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.312e-05/0.9089, allocations: 13.81 kB / 0.5479 GB, free: 95.61 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001015/0.909, allocations: 41.3 kB / 0.5479 GB, free: 95.61 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001739/0.9107, allocations: 413.3 kB / 0.5483 GB, free: 95.61 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006489/0.9114, allocations: 1.251 MB / 0.5496 GB, free: 94.42 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001599/0.913, allocations: 111.8 kB / 0.5497 GB, free: 94.42 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001574/0.9132, allocations: 67.06 kB / 0.5497 GB, free: 94.42 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.0003838/0.9136, allocations: 149.9 kB / 0.5499 GB, free: 94.31 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001953/0.9155, allocations: 1.013 MB / 0.5509 GB, free: 94.16 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002602/0.9158, allocations: 151.2 kB / 0.551 GB, free: 94.08 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002127/0.9179, allocations: 1.079 MB / 0.5521 GB, free: 93.98 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.136e-05/0.918, allocations: 10.66 kB / 0.5521 GB, free: 93.98 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.918, allocations: 1.562 kB / 0.5521 GB, free: 93.98 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.566e-05/0.918, allocations: 9.344 kB / 0.5521 GB, free: 93.98 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006209/0.9242, allocations: 3.232 MB / 0.5552 GB, free: 93.31 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.495e-05/0.9243, allocations: 10.14 kB / 0.5552 GB, free: 93.31 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001234/0.9255, allocations: 291.9 kB / 0.5555 GB, free: 93.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001052/0.9256, allocations: 38.77 kB / 0.5556 GB, free: 93.29 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.291e-05/0.9257, allocations: 18.94 kB / 0.5556 GB, free: 93.29 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006165/0.9263, allocations: 1.246 MB / 0.5568 GB, free: 92.09 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.097e-05/0.9263, allocations: 15.62 kB / 0.5568 GB, free: 92.09 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002205/0.9285, allocations: 2.26 MB / 0.559 GB, free: 90.6 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005426/0.9291, allocations: 317.3 kB / 0.5593 GB, free: 90.43 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001804/0.9293, allocations: 18.22 kB / 0.5593 GB, free: 90.43 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001091/0.9304, allocations: 127.2 kB / 0.5595 GB, free: 90.43 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002323/0.9306, allocations: 132.5 kB / 0.5596 GB, free: 90.41 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.278e-05/0.9307, allocations: 43.81 kB / 0.5596 GB, free: 90.41 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001005/0.9317, allocations: 0.744 MB / 0.5604 GB, free: 90.3 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.9317, allocations: 0 / 0.5604 GB, free: 90.3 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002127/0.9338, allocations: 0.5755 MB / 0.5609 GB, free: 90.3 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.003069/0.9369, allocations: 5.876 MB / 0.5667 GB, free: 85.56 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003355/0.9403, allocations: 2.226 MB / 0.5688 GB, free: 85.24 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.773e-06/0.9403, allocations: 7.172 kB / 0.5688 GB, free: 85.24 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007439/0.9411, allocations: 0.526 MB / 0.5693 GB, free: 85.1 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001454/0.9425, allocations: 302.8 kB / 0.5696 GB, free: 85.09 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005714/0.9483, allocations: 2.945 MB / 0.5725 GB, free: 83.71 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009544/0.9492, allocations: 1.383 MB / 0.5739 GB, free: 82.97 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001876/0.9511, allocations: 342.9 kB / 0.5742 GB, free: 82.88 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008753/0.952, allocations: 0.7404 MB / 0.5749 GB, free: 82.27 MB / 410.7 MB Notification: Performance of SimCode: time 1.072e-06/0.952, allocations: 0 / 0.5749 GB, free: 82.27 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06057/1.013, allocations: 33.07 MB / 0.6072 GB, free: 73.65 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001961/1.013, allocations: 177 kB / 0.6074 GB, free: 73.46 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.048/4.061, allocations: 0 / 0.6074 GB, free: 73.46 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_PositionControlledDCPM_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_PositionControlledDCPM.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM_res.mat does not exist to compare? outputFormat=mat