Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Drive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Drive",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001552/0.001552, allocations: 203.5 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.381/1.381, allocations: 225.6 MB / 234.8 MB, free: 3.266 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000792/0.0007921, allocations: 95.09 kB / 286.7 MB, free: 5.293 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.23e-05/2.21e-05, allocations: 4 kB / 343.8 MB, free: 8.168 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09326/0.09331, allocations: 51.47 MB / 395.3 MB, free: 4.652 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3412/0.4346, allocations: 113.2 MB / 0.4966 GB, free: 12.33 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002458/0.4349, allocations: 85.39 kB / 0.4966 GB, free: 12.29 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1432/0.5781, allocations: 56.6 MB / 0.5519 GB, free: 8.289 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.916e-06/0.5781, allocations: 0 / 0.5519 GB, free: 8.289 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002296/0.5784, allocations: 63.92 kB / 0.552 GB, free: 8.227 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: 658 * Number of variables: 658 Notification: Performance of Generate backend data structure: time 0.005439/0.5838, allocations: 2.305 MB / 0.5542 GB, free: 5.867 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.488e-05/0.5839, allocations: 8.031 kB / 0.5542 GB, free: 5.859 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001463/0.5853, allocations: 368.3 kB / 0.5546 GB, free: 5.496 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00338/0.5887, allocations: 1.516 MB / 0.5561 GB, free: 3.922 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001253/0.5889, allocations: 80 kB / 0.5561 GB, free: 3.844 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005717/0.5895, allocations: 159.9 kB / 0.5563 GB, free: 3.688 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00346/0.5929, allocations: 1.365 MB / 0.5576 GB, free: 2.316 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004029/0.597, allocations: 1.975 MB / 0.5596 GB, free: 240 kB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.689e-05/0.5971, allocations: 11.84 kB / 0.5596 GB, free: 228 kB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00015/0.5972, allocations: 0 / 0.5596 GB, free: 228 kB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.631e-05/0.5973, allocations: 64 kB / 0.5596 GB, free: 164 kB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01439/0.6117, allocations: 10.03 MB / 0.5694 GB, free: 5.645 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001589/0.6133, allocations: 0.7936 MB / 0.5702 GB, free: 4.816 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006971/0.614, allocations: 412.3 kB / 0.5706 GB, free: 4.414 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.939e-05/0.6141, allocations: 12.78 kB / 0.5706 GB, free: 4.398 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.642e-05/0.6141, allocations: 39.34 kB / 0.5706 GB, free: 4.352 MB / 442.7 MB Notification: Performance of pre-optimization done (n=83): time 2.926e-06/0.6142, allocations: 0 / 0.5706 GB, free: 4.352 MB / 442.7 MB Notification: Performance of matching and sorting (n=89): time 0.003686/0.6178, allocations: 1.966 MB / 0.5726 GB, free: 2.336 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.666e-05/0.6179, allocations: 115.6 kB / 0.5727 GB, free: 2.199 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001688/0.6196, allocations: 1.088 MB / 0.5737 GB, free: 1.105 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.556e-05/0.6197, allocations: 25.7 kB / 0.5738 GB, free: 1.074 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2197/0.8394, allocations: 1.295 MB / 0.575 GB, free: 85 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004049/0.8399, allocations: 318 kB / 0.5753 GB, free: 85 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.492e-05/0.84, allocations: 0 / 0.5753 GB, free: 85 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001066/0.8401, allocations: 367.8 kB / 0.5757 GB, free: 84.69 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006228/0.8407, allocations: 316.4 kB / 0.576 GB, free: 84.69 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007594/0.8415, allocations: 1.003 MB / 0.577 GB, free: 83.83 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006921/0.8422, allocations: 0.4949 MB / 0.5774 GB, free: 83.82 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.143e-05/0.8422, allocations: 9.562 kB / 0.5775 GB, free: 83.82 MB / 442.7 MB Notification: Performance of matching and sorting (n=214) (initialization): time 0.002277/0.8445, allocations: 1.365 MB / 0.5788 GB, free: 83.69 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001696/0.8462, allocations: 9.331 MB / 0.5879 GB, free: 74.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.464e-05/0.8462, allocations: 24.86 kB / 0.5879 GB, free: 74.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002299/0.8465, allocations: 59.06 kB / 0.588 GB, free: 74.09 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001268/0.8478, allocations: 407 kB / 0.5884 GB, free: 74.09 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007541/0.8485, allocations: 1.277 MB / 0.5896 GB, free: 72.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001217/0.8498, allocations: 69.17 kB / 0.5897 GB, free: 72.89 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001017/0.8499, allocations: 80.38 kB / 0.5898 GB, free: 72.89 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.948e-06/0.8499, allocations: 3.25 kB / 0.5898 GB, free: 72.89 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001683/0.8516, allocations: 1.147 MB / 0.5909 GB, free: 72.85 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.246e-05/0.8516, allocations: 25.72 kB / 0.5909 GB, free: 72.85 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001092/0.8517, allocations: 58.64 kB / 0.591 GB, free: 72.84 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001119/0.8529, allocations: 395.3 kB / 0.5913 GB, free: 72.84 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000691/0.8536, allocations: 1.276 MB / 0.5926 GB, free: 71.66 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001188/0.8548, allocations: 44.97 kB / 0.5926 GB, free: 71.66 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001088/0.8549, allocations: 82.94 kB / 0.5927 GB, free: 71.66 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 106 * Number of states: 0 () * Number of discrete variables: 3 (booleanStep.y,dcdcInverter2.idealDcDc.powerController.local_reset,dcdcInverter1.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (213): * Single equations (assignments): 212 * 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.0002962/0.8552, allocations: 174.6 kB / 0.5929 GB, free: 71.55 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001192/0.8564, allocations: 0.6994 MB / 0.5936 GB, free: 71.41 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001837/0.8566, allocations: 159.5 kB / 0.5937 GB, free: 71.33 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001228/0.8578, allocations: 0.7249 MB / 0.5944 GB, free: 71.24 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.716e-06/0.8578, allocations: 9.375 kB / 0.5944 GB, free: 71.24 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.8578, allocations: 2.406 kB / 0.5944 GB, free: 71.24 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.049e-05/0.8579, allocations: 5.297 kB / 0.5944 GB, free: 71.24 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003222/0.8611, allocations: 2.406 MB / 0.5968 GB, free: 70.78 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.055e-06/0.8611, allocations: 4.188 kB / 0.5968 GB, free: 70.78 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008293/0.862, allocations: 193.1 kB / 0.597 GB, free: 70.78 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001013/0.8621, allocations: 31.17 kB / 0.597 GB, free: 70.77 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.869e-05/0.8621, allocations: 14.41 kB / 0.597 GB, free: 70.77 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006149/0.8627, allocations: 1.239 MB / 0.5982 GB, free: 69.58 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.62e-06/0.8628, allocations: 13.72 kB / 0.5982 GB, free: 69.58 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001374/0.8641, allocations: 1.44 MB / 0.5996 GB, free: 68.89 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000434/0.8646, allocations: 298.1 kB / 0.5999 GB, free: 68.71 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001649/0.8648, allocations: 11.19 kB / 0.5999 GB, free: 68.71 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006786/0.8655, allocations: 55.11 kB / 0.6 GB, free: 68.71 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001042/0.8656, allocations: 66.72 kB / 0.6001 GB, free: 68.71 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.233e-05/0.8656, allocations: 30.53 kB / 0.6001 GB, free: 68.71 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0009941/0.8666, allocations: 0.7787 MB / 0.6008 GB, free: 68.6 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.8666, allocations: 0 / 0.6008 GB, free: 68.6 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002429/0.8691, allocations: 0.69 MB / 0.6015 GB, free: 68.6 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 16 (dcpm1.inertiaRotor.w,dcpm1.la.i,dcpm2.la.i,coupling.flange_a.phi,dcdcInverter1.vDCFilter.y,dcdcInverter1.iMotFilter.y,dcdcInverter1.vMotFilter.y,dcdcInverter1.iDCFilter.y,dcdcInverter1.idealDcDc.deadTime.y,dcdcInverter1.idealDcDc.powerController.y,dcdcInverter2.vDCFilter.y,dcdcInverter2.iMotFilter.y,dcdcInverter2.vMotFilter.y,dcdcInverter2.iDCFilter.y,dcdcInverter2.idealDcDc.deadTime.y,dcdcInverter2.idealDcDc.powerController.y) * Number of discrete variables: 1 (booleanStep.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 87 * 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.002368/0.8714, allocations: 3.163 MB / 0.6046 GB, free: 66.4 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002907/0.8744, allocations: 1.752 MB / 0.6063 GB, free: 66.05 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.783e-06/0.8744, allocations: 2.625 kB / 0.6063 GB, free: 66.05 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005253/0.8749, allocations: 450.2 kB / 0.6067 GB, free: 65.93 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001936/0.8769, allocations: 352.4 kB / 0.6071 GB, free: 65.92 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006594/0.8835, allocations: 3.217 MB / 0.6102 GB, free: 64.71 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008721/0.8844, allocations: 1.523 MB / 0.6117 GB, free: 63.95 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001521/0.8859, allocations: 287.9 kB / 0.612 GB, free: 63.88 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009106/0.8868, allocations: 0.8958 MB / 0.6129 GB, free: 63.87 MB / 442.7 MB Notification: Performance of SimCode: time 1.333e-06/0.8869, allocations: 2.938 kB / 0.6129 GB, free: 63.87 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08028/0.9671, allocations: 33.85 MB / 0.6459 GB, free: 61.91 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001763/0.9674, allocations: 160.6 kB / 0.6461 GB, free: 61.71 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.112/4.08, allocations: 4 kB / 0.6461 GB, free: 61.71 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Drive_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Drive.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe 2>&1)