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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001121/0.001121, allocations: 97.8 kB / 16.95 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001554/0.001554, allocations: 177.2 kB / 17.84 MB, free: 5.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.792/1.792, allocations: 205.4 MB / 224 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004603/0.0004603, allocations: 8 kB / 280.9 MB, free: 3.621 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1015, allocations: 47.59 MB / 328.5 MB, free: 3.965 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.01501/0.1166, allocations: 13.33 MB / 341.8 MB, free: 6.574 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01003/0.1267, allocations: 5.321 MB / 347.1 MB, free: 1.238 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002834/0.1295, allocations: 75.62 kB / 347.2 MB, free: 1.164 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002426/0.132, allocations: 0.7884 MB / 348 MB, free: 380 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00171/0.1337, allocations: 0.4885 MB / 348.5 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001308/0.135, allocations: 479.2 kB / 348.9 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002744/0.1378, allocations: 2.429 MB / 351.4 MB, free: 12.97 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001279/0.1391, allocations: 0.8895 MB / 352.3 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001032/0.1401, allocations: 0.7969 MB / 353.1 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008542/0.141, allocations: 0.8317 MB / 353.9 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001676/0.1412, allocations: 96 kB / 354 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002/0.1414, allocations: 100 kB / 354.1 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002759/0.1417, allocations: 338.4 kB / 354.4 MB, free: 9.887 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003289/0.142, allocations: 416.6 kB / 354.8 MB, free: 9.473 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001851/0.1439, allocations: 2.454 MB / 357.3 MB, free: 7.012 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.1439, allocations: 0 / 357.3 MB, free: 7.012 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1439, allocations: 4 kB / 357.3 MB, free: 7.008 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.479e-05/0.1439, allocations: 0 / 357.3 MB, free: 7.008 MB / 302.1 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.003483/0.1474, allocations: 2.131 MB / 359.4 MB, free: 4.82 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.997e-05/0.1475, allocations: 15.91 kB / 359.4 MB, free: 4.805 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000287/0.1478, allocations: 270 kB / 359.7 MB, free: 4.531 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003106/0.1481, allocations: 253 kB / 359.9 MB, free: 4.281 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001792/0.1499, allocations: 1.178 MB / 361.1 MB, free: 3.047 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002992/0.1502, allocations: 268.8 kB / 361.4 MB, free: 2.766 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002284/0.1504, allocations: 195.8 kB / 361.6 MB, free: 2.574 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003449/0.1539, allocations: 1.926 MB / 363.5 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.03e-05/0.154, allocations: 11.94 kB / 363.5 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001485/0.1541, allocations: 76 kB / 363.6 MB, free: 0.5 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.085e-05/0.1542, allocations: 51.95 kB / 363.6 MB, free: 460 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00327/0.1574, allocations: 1.622 MB / 365.2 MB, free: 14.82 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009945/0.1674, allocations: 7.293 MB / 372.5 MB, free: 7.215 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002568/0.17, allocations: 1.249 MB / 373.8 MB, free: 5.887 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000979/0.171, allocations: 480.3 kB / 374.3 MB, free: 5.418 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.221e-05/0.1711, allocations: 9 kB / 374.3 MB, free: 5.41 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.849e-05/0.1712, allocations: 47.56 kB / 374.3 MB, free: 5.355 MB / 318.1 MB Notification: Performance of pre-optimization done (n=83): time 3.146e-06/0.1712, allocations: 4 kB / 374.3 MB, free: 5.352 MB / 318.1 MB Notification: Performance of matching and sorting (n=110): time 0.2685/0.4396, allocations: 8.818 MB / 383.1 MB, free: 34.11 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.243e-05/0.4398, allocations: 67.19 kB / 383.2 MB, free: 34.05 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00279/0.4426, allocations: 1.231 MB / 384.4 MB, free: 33.87 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001204/0.4427, allocations: 43.86 kB / 384.5 MB, free: 33.84 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001123/0.4438, allocations: 0.9942 MB / 385.5 MB, free: 33.37 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004359/0.4443, allocations: 389.6 kB / 385.8 MB, free: 33.13 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.224e-05/0.4444, allocations: 32.31 kB / 385.9 MB, free: 33.13 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.4445, allocations: 363 kB / 386.2 MB, free: 32.82 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002178/0.4467, allocations: 0.7678 MB / 387 MB, free: 32.81 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002809/0.4495, allocations: 1.229 MB / 388.2 MB, free: 32.25 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002381/0.4519, allocations: 0.8113 MB / 389 MB, free: 32.21 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.594e-05/0.452, allocations: 8.328 kB / 389.1 MB, free: 32.21 MB / 318.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.005751/0.4577, allocations: 2.222 MB / 391.3 MB, free: 31.93 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005071/0.4583, allocations: 0.5266 MB / 391.8 MB, free: 31.3 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.395e-05/0.4583, allocations: 14.72 kB / 391.8 MB, free: 31.3 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002423/0.4586, allocations: 43.22 kB / 391.9 MB, free: 31.29 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001754/0.4603, allocations: 440.6 kB / 392.3 MB, free: 31.29 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008478/0.4612, allocations: 1.281 MB / 393.6 MB, free: 30.04 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001626/0.4628, allocations: 167.8 kB / 393.7 MB, free: 30.02 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001055/0.463, allocations: 65.5 kB / 393.8 MB, free: 30.02 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.896e-06/0.463, allocations: 3 kB / 393.8 MB, free: 30.02 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004156/0.4671, allocations: 1.957 MB / 395.8 MB, free: 29.87 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.303e-05/0.4672, allocations: 13.88 kB / 395.8 MB, free: 29.87 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001147/0.4673, allocations: 50.7 kB / 395.8 MB, free: 29.85 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001618/0.4689, allocations: 421 kB / 396.2 MB, free: 29.85 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007196/0.4697, allocations: 1.282 MB / 397.5 MB, free: 28.59 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001514/0.4712, allocations: 141.8 kB / 397.7 MB, free: 28.59 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001027/0.4713, allocations: 62.19 kB / 397.7 MB, free: 28.59 MB / 318.1 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.001264/0.4726, allocations: 487.5 kB / 398.2 MB, free: 28.39 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003112/0.4729, allocations: 165 kB / 398.3 MB, free: 28.3 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003596/0.4765, allocations: 1.674 MB / 400 MB, free: 28.1 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.799e-06/0.4765, allocations: 9.562 kB / 400 MB, free: 28.1 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.4766, allocations: 4 kB / 400 MB, free: 28.09 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.206e-05/0.4766, allocations: 7.781 kB / 400 MB, free: 28.09 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007212/0.4838, allocations: 3.909 MB / 404 MB, free: 27.25 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.818e-05/0.4838, allocations: 9.719 kB / 404 MB, free: 27.25 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001043/0.4849, allocations: 289.1 kB / 404.2 MB, free: 27.24 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001007/0.485, allocations: 34.11 kB / 404.3 MB, free: 27.23 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.936e-05/0.4851, allocations: 33.06 kB / 404.3 MB, free: 27.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006497/0.4857, allocations: 1.283 MB / 405.6 MB, free: 25.97 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.218e-05/0.4858, allocations: 16.05 kB / 405.6 MB, free: 25.97 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004077/0.4899, allocations: 2.372 MB / 408 MB, free: 24.97 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008493/0.4907, allocations: 307.4 kB / 408.3 MB, free: 24.73 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001734/0.4909, allocations: 35.94 kB / 408.3 MB, free: 24.71 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008538/0.4918, allocations: 137.6 kB / 408.5 MB, free: 24.62 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002181/0.492, allocations: 135.6 kB / 408.6 MB, free: 24.56 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.86e-05/0.4921, allocations: 38.56 kB / 408.6 MB, free: 24.53 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001167/0.4933, allocations: 0.8035 MB / 409.4 MB, free: 24.02 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4933, allocations: 0 / 409.4 MB, free: 24.02 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002324/0.4956, allocations: 0.6074 MB / 410 MB, free: 23.48 MB / 318.1 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.004088/0.4997, allocations: 2.959 MB / 413 MB, free: 20.45 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.006126/0.5059, allocations: 2.929 MB / 415.9 MB, free: 17.61 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.496e-05/0.5059, allocations: 4 kB / 415.9 MB, free: 17.6 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001494/0.5074, allocations: 0.7493 MB / 416.7 MB, free: 16.88 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002478/0.5099, allocations: 338.5 kB / 417 MB, free: 16.55 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02396/0.5339, allocations: 11.35 MB / 428.4 MB, free: 4.469 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001295/0.5352, allocations: 1.345 MB / 429.7 MB, free: 3.098 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001902/0.5371, allocations: 285.1 kB / 430 MB, free: 2.816 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001173/0.5384, allocations: 0.7492 MB / 430.7 MB, free: 2.066 MB / 318.1 MB Notification: Performance of SimCode: time 1.734e-06/0.5384, allocations: 3.281 kB / 430.7 MB, free: 2.066 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06811/0.6065, allocations: 30.94 MB / 461.7 MB, free: 3.105 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003438/0.6069, allocations: 243.8 kB / 461.9 MB, free: 2.863 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.998/3.605, allocations: 4 kB / 461.9 MB, free: 2.859 MB / 350.1 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) Environment - environmentSimulation: 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