Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.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.CurrentControlledDCPM,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM",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.001332/0.001332, allocations: 175.9 kB / 8.348 MB, free: 0.7188 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.342/1.342, allocations: 221.5 MB / 230.3 MB, free: 7.582 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.0009186/0.0009187, allocations: 91.61 kB / 281.2 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.895e-05/1.892e-05, allocations: 4 kB / 337.2 MB, free: 9.922 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1173, allocations: 50.41 MB / 387.6 MB, free: 7.473 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3777/0.4951, allocations: 115.5 MB / 0.4913 GB, free: 11.16 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002658/0.4954, allocations: 89.06 kB / 0.4913 GB, free: 11.07 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09667/0.5921, allocations: 38.86 MB / 0.5293 GB, free: 4.027 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.5922, allocations: 0 / 0.5293 GB, free: 4.027 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001462/0.5923, allocations: 40 kB / 0.5293 GB, free: 3.988 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: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.003105/0.5954, allocations: 1.538 MB / 0.5308 GB, free: 2.398 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.443e-05/0.5955, allocations: 8.031 kB / 0.5308 GB, free: 2.391 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008617/0.5964, allocations: 253.5 kB / 0.5311 GB, free: 2.141 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00221/0.5986, allocations: 1.047 MB / 0.5321 GB, free: 1.047 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.346e-05/0.5987, allocations: 48 kB / 0.5322 GB, free: 1 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001979/0.5989, allocations: 99.89 kB / 0.5322 GB, free: 0.9023 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001755/0.6006, allocations: 0.7948 MB / 0.533 GB, free: 108 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002151/0.6028, allocations: 1.148 MB / 0.5341 GB, free: 14.9 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.308e-05/0.6029, allocations: 11.92 kB / 0.5342 GB, free: 14.89 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.702e-05/0.603, allocations: 0 / 0.5342 GB, free: 14.89 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.125e-05/0.603, allocations: 36 kB / 0.5342 GB, free: 14.85 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008487/0.6115, allocations: 5.935 MB / 0.54 GB, free: 8.629 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001077/0.6126, allocations: 0.6048 MB / 0.5406 GB, free: 7.977 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002992/0.6129, allocations: 206 kB / 0.5408 GB, free: 7.773 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.441e-05/0.613, allocations: 4.438 kB / 0.5408 GB, free: 7.766 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.584e-05/0.613, allocations: 39 kB / 0.5408 GB, free: 7.719 MB / 426.7 MB Notification: Performance of pre-optimization done (n=51): time 5.19e-06/0.6131, allocations: 4 kB / 0.5408 GB, free: 7.715 MB / 426.7 MB Notification: Performance of matching and sorting (n=54): time 0.00253/0.6156, allocations: 1.273 MB / 0.5421 GB, free: 6.387 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.772e-05/0.6157, allocations: 81.55 kB / 0.5421 GB, free: 6.289 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001283/0.617, allocations: 0.8087 MB / 0.5429 GB, free: 5.465 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.093e-05/0.617, allocations: 25.7 kB / 0.543 GB, free: 5.434 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006275/0.6176, allocations: 0.805 MB / 0.5437 GB, free: 4.617 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001702/0.6178, allocations: 205.1 kB / 0.5439 GB, free: 4.414 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.651e-05/0.6179, allocations: 0 / 0.5439 GB, free: 4.414 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001764/0.618, allocations: 345.9 kB / 0.5443 GB, free: 4.07 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003292/0.6184, allocations: 186.6 kB / 0.5444 GB, free: 3.891 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006329/0.619, allocations: 0.571 MB / 0.545 GB, free: 3.133 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004655/0.6195, allocations: 289.9 kB / 0.5453 GB, free: 2.852 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.263e-06/0.6195, allocations: 4 kB / 0.5453 GB, free: 2.848 MB / 426.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001436/0.621, allocations: 0.8157 MB / 0.5461 GB, free: 2.02 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.2927/0.9137, allocations: 5.129 MB / 0.5511 GB, free: 106.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.382e-05/0.9138, allocations: 14.38 kB / 0.5511 GB, free: 106.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003055/0.9141, allocations: 44.06 kB / 0.5511 GB, free: 106.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001045/0.9151, allocations: 230.5 kB / 0.5514 GB, free: 106.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009584/0.9161, allocations: 1.245 MB / 0.5526 GB, free: 105.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001066/0.9172, allocations: 33.22 kB / 0.5526 GB, free: 105.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.706e-05/0.9173, allocations: 49.25 kB / 0.5527 GB, free: 105.6 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.052e-05/0.9173, allocations: 4.656 kB / 0.5527 GB, free: 105.6 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001317/0.9186, allocations: 0.659 MB / 0.5533 GB, free: 105.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.882e-05/0.9187, allocations: 14.06 kB / 0.5533 GB, free: 105.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001084/0.9188, allocations: 41.81 kB / 0.5534 GB, free: 105.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007104/0.9195, allocations: 220.9 kB / 0.5536 GB, free: 105.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006491/0.9202, allocations: 1.246 MB / 0.5548 GB, free: 104.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007919/0.921, allocations: 20.56 kB / 0.5548 GB, free: 104.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.851e-05/0.921, allocations: 46.53 kB / 0.5548 GB, free: 104.4 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 2 (currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * 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.0002068/0.9213, allocations: 140.2 kB / 0.555 GB, free: 104.3 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007991/0.9221, allocations: 455.7 kB / 0.5554 GB, free: 104.3 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001355/0.9222, allocations: 113.3 kB / 0.5555 GB, free: 104.3 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009695/0.9232, allocations: 467.8 kB / 0.556 GB, free: 104.2 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.842e-06/0.9232, allocations: 5.5 kB / 0.556 GB, free: 104.2 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.546e-06/0.9232, allocations: 4.203 kB / 0.556 GB, free: 104.2 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.356e-06/0.9232, allocations: 3.406 kB / 0.556 GB, free: 104.2 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002599/0.9258, allocations: 1.563 MB / 0.5575 GB, free: 103.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.992e-06/0.9259, allocations: 2.859 kB / 0.5575 GB, free: 103.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005119/0.9264, allocations: 111.4 kB / 0.5576 GB, free: 103.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.67e-05/0.9265, allocations: 19.83 kB / 0.5576 GB, free: 103.9 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.415e-05/0.9265, allocations: 15.25 kB / 0.5577 GB, free: 103.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006413/0.9272, allocations: 1.226 MB / 0.5588 GB, free: 102.7 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.9272, allocations: 1.375 kB / 0.5589 GB, free: 102.7 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001115/0.9283, allocations: 0.8764 MB / 0.5597 GB, free: 102.3 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003701/0.9287, allocations: 226.2 kB / 0.5599 GB, free: 102.2 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001173/0.9288, allocations: 10.64 kB / 0.5599 GB, free: 102.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004805/0.9293, allocations: 30.34 kB / 0.56 GB, free: 102.2 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.424e-05/0.9294, allocations: 36.52 kB / 0.56 GB, free: 102.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.001e-05/0.9294, allocations: 18.59 kB / 0.56 GB, free: 102.2 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0009039/0.9303, allocations: 0.5926 MB / 0.5606 GB, free: 102.1 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.9304, allocations: 3.719 kB / 0.5606 GB, free: 102.1 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002212/0.9326, allocations: 437.4 kB / 0.561 GB, free: 102.1 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 10 (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,loadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 52 * 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.002739/0.9353, allocations: 2.147 MB / 0.5631 GB, free: 100.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002796/0.9381, allocations: 1.107 MB / 0.5642 GB, free: 100.5 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.153e-06/0.9382, allocations: 3.844 kB / 0.5642 GB, free: 100.5 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004763/0.9386, allocations: 306 kB / 0.5645 GB, free: 100.4 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001513/0.9402, allocations: 241 kB / 0.5647 GB, free: 100.4 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004635/0.9448, allocations: 2.019 MB / 0.5667 GB, free: 99.69 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008949/0.9457, allocations: 1.201 MB / 0.5679 GB, free: 98.96 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001075/0.9468, allocations: 190.8 kB / 0.568 GB, free: 98.92 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005735/0.9474, allocations: 0.5467 MB / 0.5686 GB, free: 98.91 MB / 426.7 MB Notification: Performance of SimCode: time 1.493e-06/0.9474, allocations: 0 / 0.5686 GB, free: 98.91 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05845/1.006, allocations: 23.19 MB / 0.5912 GB, free: 97.46 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001917/1.006, allocations: 176.5 kB / 0.5914 GB, free: 97.27 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.58/3.586, allocations: 0 / 0.5914 GB, free: 97.27 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat does not exist to compare? outputFormat=mat