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.001732/0.001732, allocations: 196.6 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.38/1.38, allocations: 225.4 MB / 240.1 MB, free: 15.04 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00105/0.00105, allocations: 84.27 kB / 292.1 MB, free: 5.965 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.947e-05/2.95e-05, allocations: 0 / 350.6 MB, free: 2.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09463/0.09468, allocations: 51.49 MB / 402.1 MB, free: 14.88 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4031/0.4978, allocations: 113.9 MB / 0.5039 GB, free: 7.934 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003088/0.4982, allocations: 84.52 kB / 0.504 GB, free: 7.891 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2035/0.7017, allocations: 57.32 MB / 0.56 GB, free: 15.64 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.707e-06/0.7018, allocations: 4 kB / 0.56 GB, free: 15.64 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001768/0.7019, allocations: 59.94 kB / 0.56 GB, free: 15.58 MB / 442.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.005871/0.7078, allocations: 2.307 MB / 0.5623 GB, free: 13.23 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.981e-05/0.7079, allocations: 8.031 kB / 0.5623 GB, free: 13.22 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006395/0.7086, allocations: 350.8 kB / 0.5626 GB, free: 12.87 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001428/0.71, allocations: 368.3 kB / 0.563 GB, free: 12.5 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003667/0.7137, allocations: 1.516 MB / 0.5645 GB, free: 10.93 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002015/0.7139, allocations: 193.2 kB / 0.5646 GB, free: 10.74 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004984/0.7144, allocations: 267.9 kB / 0.5649 GB, free: 10.48 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005904/0.7203, allocations: 2.333 MB / 0.5672 GB, free: 8.031 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.747e-05/0.7204, allocations: 11.84 kB / 0.5672 GB, free: 8.02 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003056/0.7208, allocations: 108 kB / 0.5673 GB, free: 7.914 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.639e-05/0.7208, allocations: 64 kB / 0.5673 GB, free: 7.852 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004681/0.7255, allocations: 1.511 MB / 0.5688 GB, free: 6.328 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2532/0.9788, allocations: 10.49 MB / 0.5791 GB, free: 80.22 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001479/0.9803, allocations: 0.8293 MB / 0.5799 GB, free: 80.09 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006492/0.981, allocations: 432.9 kB / 0.5803 GB, free: 80.08 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.529e-05/0.981, allocations: 16.48 kB / 0.5803 GB, free: 80.08 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.234e-05/0.9811, allocations: 41.84 kB / 0.5803 GB, free: 80.04 MB / 442.7 MB Notification: Performance of pre-optimization done (n=83): time 2.635e-06/0.9811, allocations: 0 / 0.5803 GB, free: 80.04 MB / 442.7 MB Notification: Performance of matching and sorting (n=89): time 0.0032/0.9843, allocations: 2.118 MB / 0.5824 GB, free: 79.39 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.542e-05/0.9843, allocations: 116.3 kB / 0.5825 GB, free: 79.27 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001649/0.986, allocations: 1.3 MB / 0.5838 GB, free: 79.1 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.977e-05/0.9861, allocations: 47.05 kB / 0.5838 GB, free: 79.07 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005617/0.9866, allocations: 1.286 MB / 0.5851 GB, free: 78.59 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001692/0.9868, allocations: 335 kB / 0.5854 GB, free: 78.43 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.154e-05/0.9869, allocations: 33.5 kB / 0.5854 GB, free: 78.43 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.126e-05/0.9869, allocations: 366.7 kB / 0.5858 GB, free: 78.12 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005064/0.9875, allocations: 349.6 kB / 0.5861 GB, free: 78.12 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008019/0.9883, allocations: 1.045 MB / 0.5871 GB, free: 77.25 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008241/0.9891, allocations: 0.53 MB / 0.5877 GB, free: 77.23 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.116e-05/0.9891, allocations: 8.781 kB / 0.5877 GB, free: 77.23 MB / 442.7 MB Notification: Performance of matching and sorting (n=214) (initialization): time 0.002232/0.9914, allocations: 1.561 MB / 0.5892 GB, free: 77.08 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001869/0.9932, allocations: 9.427 MB / 0.5984 GB, free: 67.48 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.215e-05/0.9933, allocations: 22.91 kB / 0.5984 GB, free: 67.48 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002084/0.9935, allocations: 60.97 kB / 0.5985 GB, free: 67.47 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001277/0.9948, allocations: 406.8 kB / 0.5989 GB, free: 67.47 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000747/0.9956, allocations: 1.324 MB / 0.6002 GB, free: 66.22 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001159/0.9967, allocations: 104.7 kB / 0.6003 GB, free: 66.21 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.377e-05/0.9968, allocations: 79.38 kB / 0.6003 GB, free: 66.21 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.813e-06/0.9968, allocations: 3.562 kB / 0.6003 GB, free: 66.21 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001814/0.9986, allocations: 1.372 MB / 0.6017 GB, free: 66.18 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.426e-05/0.9987, allocations: 25.03 kB / 0.6017 GB, free: 66.18 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001058/0.9988, allocations: 58.61 kB / 0.6018 GB, free: 66.17 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001063/0.9999, allocations: 391.5 kB / 0.6021 GB, free: 66.17 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005766/1, allocations: 1.328 MB / 0.6034 GB, free: 64.93 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009886/1.001, allocations: 76.55 kB / 0.6035 GB, free: 64.92 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.78e-05/1.002, allocations: 85.03 kB / 0.6036 GB, free: 64.92 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.0002243/1.002, allocations: 224.8 kB / 0.6038 GB, free: 64.77 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000188/1.002, allocations: 173.1 kB / 0.604 GB, free: 64.68 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001263/1.003, allocations: 0.8107 MB / 0.6048 GB, free: 64.59 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/1.003, allocations: 6.562 kB / 0.6048 GB, free: 64.59 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/1.003, allocations: 3.25 kB / 0.6048 GB, free: 64.59 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.088e-06/1.003, allocations: 7.516 kB / 0.6048 GB, free: 64.59 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003488/1.007, allocations: 2.77 MB / 0.6075 GB, free: 64.07 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.912e-06/1.007, allocations: 4.031 kB / 0.6075 GB, free: 64.07 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007975/1.008, allocations: 192.7 kB / 0.6077 GB, free: 64.07 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.941e-05/1.008, allocations: 31.48 kB / 0.6077 GB, free: 64.06 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.022e-05/1.008, allocations: 22.44 kB / 0.6077 GB, free: 64.06 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005709/1.008, allocations: 1.29 MB / 0.609 GB, free: 62.79 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.908e-06/1.008, allocations: 7 kB / 0.609 GB, free: 62.79 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001566/1.01, allocations: 1.543 MB / 0.6105 GB, free: 62.08 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006587/1.011, allocations: 316.4 kB / 0.6108 GB, free: 61.9 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001684/1.011, allocations: 23.69 kB / 0.6108 GB, free: 61.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006817/1.011, allocations: 67.72 kB / 0.6109 GB, free: 61.9 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001106/1.012, allocations: 71.53 kB / 0.611 GB, free: 61.89 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.155e-05/1.012, allocations: 27.78 kB / 0.611 GB, free: 61.89 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001209/1.013, allocations: 0.9631 MB / 0.6119 GB, free: 61.77 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.082e-06/1.013, allocations: 0 / 0.6119 GB, free: 61.77 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002448/1.015, allocations: 0.8039 MB / 0.6127 GB, free: 61.77 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.002284/1.018, allocations: 3.272 MB / 0.6159 GB, free: 59.55 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002653/1.02, allocations: 1.921 MB / 0.6178 GB, free: 59.14 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/1.02, allocations: 3.375 kB / 0.6178 GB, free: 59.14 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005557/1.021, allocations: 480.6 kB / 0.6182 GB, free: 59.01 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001781/1.023, allocations: 400.2 kB / 0.6186 GB, free: 58.99 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005988/1.029, allocations: 3.34 MB / 0.6219 GB, free: 57.77 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001042/1.03, allocations: 1.528 MB / 0.6234 GB, free: 57.01 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001623/1.031, allocations: 301.2 kB / 0.6237 GB, free: 56.94 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009385/1.032, allocations: 0.9078 MB / 0.6245 GB, free: 56.93 MB / 442.7 MB Notification: Performance of SimCode: time 1.703e-06/1.032, allocations: 3.609 kB / 0.6245 GB, free: 56.93 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06643/1.099, allocations: 39.7 MB / 0.6633 GB, free: 54.63 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001354/1.099, allocations: 188.5 kB / 0.6635 GB, free: 54.4 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.305/4.404, allocations: 3.625 kB / 0.6635 GB, free: 54.4 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)