Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_PositionControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009874/0.0009874, allocations: 174.8 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.334/1.334, allocations: 221.4 MB / 235.5 MB, free: 2.914 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000959/0.000959, allocations: 90.34 kB / 286.5 MB, free: 224 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.993e-05/3.002e-05, allocations: 0 / 343.9 MB, free: 4.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1309/0.1309, allocations: 50.42 MB / 394.3 MB, free: 1.75 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3825/0.5134, allocations: 118.1 MB / 0.5004 GB, free: 1.281 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003758/0.5139, allocations: 83.95 kB / 0.5005 GB, free: 1.199 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1182/0.6321, allocations: 47.26 MB / 0.5467 GB, free: 1.734 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.6321, allocations: 0 / 0.5467 GB, free: 1.734 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001342/0.6323, allocations: 51.94 kB / 0.5467 GB, free: 1.684 MB / 426.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.239/0.8713, allocations: 1.922 MB / 0.5486 GB, free: 103.1 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.717e-05/0.8713, allocations: 9.5 kB / 0.5486 GB, free: 103.1 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009223/0.8723, allocations: 266 kB / 0.5489 GB, free: 103 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001064/0.8733, allocations: 299.3 kB / 0.5492 GB, free: 102.9 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003003/0.8764, allocations: 1.251 MB / 0.5504 GB, free: 102.6 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003131/0.8767, allocations: 263.6 kB / 0.5506 GB, free: 102.5 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002845/0.877, allocations: 193.6 kB / 0.5508 GB, free: 102.5 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003717/0.8807, allocations: 1.776 MB / 0.5525 GB, free: 102.3 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.426e-05/0.8808, allocations: 9.359 kB / 0.5526 GB, free: 102.3 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000177/0.881, allocations: 78.52 kB / 0.5526 GB, free: 102.3 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.677e-05/0.8811, allocations: 50.25 kB / 0.5527 GB, free: 102.3 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003524/0.8846, allocations: 1.361 MB / 0.554 GB, free: 102.3 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01291/0.8975, allocations: 7.472 MB / 0.5613 GB, free: 99.61 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001931/0.8995, allocations: 1.133 MB / 0.5624 GB, free: 99.2 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005869/0.9001, allocations: 369.5 kB / 0.5628 GB, free: 99.19 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.459e-05/0.9002, allocations: 14.78 kB / 0.5628 GB, free: 99.19 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.854e-05/0.9002, allocations: 48.36 kB / 0.5628 GB, free: 99.15 MB / 426.7 MB Notification: Performance of pre-optimization done (n=84): time 3.086e-06/0.9002, allocations: 0 / 0.5628 GB, free: 99.15 MB / 426.7 MB Notification: Performance of matching and sorting (n=111): time 0.01109/0.9113, allocations: 4.623 MB / 0.5673 GB, free: 98.23 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.28e-05/0.9114, allocations: 95.25 kB / 0.5674 GB, free: 98.14 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002175/0.9136, allocations: 1.197 MB / 0.5686 GB, free: 97.96 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001133/0.9137, allocations: 46.67 kB / 0.5686 GB, free: 97.93 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006618/0.9144, allocations: 0.978 MB / 0.5696 GB, free: 97.26 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003143/0.9147, allocations: 392 kB / 0.57 GB, free: 96.96 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.878e-05/0.9148, allocations: 32.91 kB / 0.57 GB, free: 96.94 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.9149, allocations: 369.4 kB / 0.5704 GB, free: 96.6 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009466/0.9159, allocations: 0.5431 MB / 0.5709 GB, free: 96.35 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001149/0.917, allocations: 0.9771 MB / 0.5718 GB, free: 95.57 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001024/0.9181, allocations: 0.5859 MB / 0.5724 GB, free: 95.34 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.189e-05/0.9181, allocations: 7.188 kB / 0.5724 GB, free: 95.34 MB / 426.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.003227/0.9213, allocations: 1.678 MB / 0.5741 GB, free: 94.68 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001029/0.9224, allocations: 5.41 MB / 0.5793 GB, free: 89.05 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.768e-05/0.9224, allocations: 13.89 kB / 0.5794 GB, free: 89.05 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002078/0.9226, allocations: 42.23 kB / 0.5794 GB, free: 89.04 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001917/0.9246, allocations: 448.9 kB / 0.5798 GB, free: 89.02 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008269/0.9254, allocations: 1.3 MB / 0.5811 GB, free: 87.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001892/0.9273, allocations: 172.8 kB / 0.5813 GB, free: 87.67 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001601/0.9275, allocations: 67.83 kB / 0.5813 GB, free: 87.66 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.096e-05/0.9275, allocations: 3.5 kB / 0.5813 GB, free: 87.66 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002159/0.9297, allocations: 1.497 MB / 0.5828 GB, free: 87.01 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.397e-05/0.9297, allocations: 11.19 kB / 0.5828 GB, free: 87.01 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001124/0.9298, allocations: 46.19 kB / 0.5828 GB, free: 87 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001536/0.9313, allocations: 412.4 kB / 0.5832 GB, free: 86.96 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006299/0.932, allocations: 1.295 MB / 0.5845 GB, free: 85.65 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001608/0.9336, allocations: 138.7 kB / 0.5846 GB, free: 85.62 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001025/0.9337, allocations: 62.03 kB / 0.5847 GB, free: 85.61 MB / 426.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.0003593/0.9341, allocations: 205.6 kB / 0.5849 GB, free: 85.43 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003027/0.9344, allocations: 165.2 kB / 0.585 GB, free: 85.34 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002082/0.9365, allocations: 1.176 MB / 0.5862 GB, free: 84.81 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.238e-06/0.9365, allocations: 10.7 kB / 0.5862 GB, free: 84.81 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.902e-06/0.9365, allocations: 3.719 kB / 0.5862 GB, free: 84.81 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.077e-05/0.9366, allocations: 3.234 kB / 0.5862 GB, free: 84.81 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00574/0.9423, allocations: 3.565 MB / 0.5897 GB, free: 83.03 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.2e-05/0.9424, allocations: 7.906 kB / 0.5897 GB, free: 83.03 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001152/0.9435, allocations: 293.4 kB / 0.59 GB, free: 83 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001289/0.9437, allocations: 43.92 kB / 0.59 GB, free: 82.98 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.92e-05/0.9438, allocations: 31.38 kB / 0.59 GB, free: 82.97 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007449/0.9445, allocations: 1.302 MB / 0.5913 GB, free: 81.65 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.686e-06/0.9445, allocations: 18.56 kB / 0.5913 GB, free: 81.64 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002767/0.9473, allocations: 2.363 MB / 0.5936 GB, free: 79.62 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009604/0.9483, allocations: 336 kB / 0.594 GB, free: 79.38 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000426/0.9487, allocations: 34.91 kB / 0.594 GB, free: 79.36 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001323/0.9501, allocations: 150.2 kB / 0.5941 GB, free: 79.34 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002329/0.9503, allocations: 131.7 kB / 0.5943 GB, free: 79.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.772e-05/0.9504, allocations: 43.19 kB / 0.5943 GB, free: 79.29 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001524/0.9519, allocations: 0.8936 MB / 0.5952 GB, free: 78.91 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.01e-07/0.9519, allocations: 0 / 0.5952 GB, free: 78.91 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002963/0.9549, allocations: 0.6899 MB / 0.5959 GB, free: 78.84 MB / 426.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.003672/0.9586, allocations: 6 MB / 0.6017 GB, free: 73.58 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004057/0.9626, allocations: 2.382 MB / 0.604 GB, free: 72.43 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.057e-06/0.9627, allocations: 0 / 0.604 GB, free: 72.43 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009571/0.9636, allocations: 0.5749 MB / 0.6046 GB, free: 72.13 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001947/0.9656, allocations: 334.1 kB / 0.6049 GB, free: 72.04 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007014/0.9726, allocations: 3.061 MB / 0.6079 GB, free: 70.46 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008938/0.9736, allocations: 1.387 MB / 0.6093 GB, free: 69.71 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002097/0.9757, allocations: 351.2 kB / 0.6096 GB, free: 69.61 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008743/0.9766, allocations: 0.7354 MB / 0.6103 GB, free: 69.01 MB / 426.7 MB Notification: Performance of SimCode: time 1.062e-06/0.9766, allocations: 0 / 0.6103 GB, free: 69.01 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06464/1.041, allocations: 38.95 MB / 0.6484 GB, free: 47.7 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001331/1.041, allocations: 203.7 kB / 0.6485 GB, free: 47.47 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.121/4.162, allocations: 0 / 0.6485 GB, free: 47.47 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_PositionControlledDCPM_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_PositionControlledDCPM.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM_res.mat does not exist to compare? outputFormat=mat