Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009792/0.0009792, allocations: 195.8 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.288/1.288, allocations: 226.5 MB / 244.7 MB, free: 8.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001031/0.001031, allocations: 99.16 kB / 296.8 MB, free: 6.906 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002172/0.0002172, allocations: 4 kB / 356.8 MB, free: 10.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2537/0.2539, allocations: 51.3 MB / 408.1 MB, free: 27.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive): time 0.02192/0.2759, allocations: 20.55 MB / 428.6 MB, free: 7.117 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01345/0.2894, allocations: 6.407 MB / 435 MB, free: 0.707 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004124/0.2935, allocations: 99.62 kB / 435.1 MB, free: 0.6094 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00221/0.2958, allocations: 0.625 MB / 435.7 MB, free: 15.98 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002816/0.2986, allocations: 0.7132 MB / 436.4 MB, free: 15.26 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001693/0.3003, allocations: 483.4 kB / 436.9 MB, free: 14.79 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004684/0.305, allocations: 3.203 MB / 440.1 MB, free: 11.57 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003251/0.3083, allocations: 1.704 MB / 441.8 MB, free: 9.809 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001732/0.31, allocations: 0.9722 MB / 442.8 MB, free: 8.832 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001673/0.3117, allocations: 1.096 MB / 443.9 MB, free: 7.73 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003421/0.3121, allocations: 156 kB / 444 MB, free: 7.578 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006202/0.3127, allocations: 184 kB / 444.2 MB, free: 7.398 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004775/0.3132, allocations: 461.9 kB / 444.7 MB, free: 6.945 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001674/0.3149, allocations: 1.296 MB / 446 MB, free: 5.637 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004324/0.3192, allocations: 3.642 MB / 449.6 MB, free: 1.984 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.3192, allocations: 0 / 449.6 MB, free: 1.984 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3193, allocations: 0 / 449.6 MB, free: 1.984 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.564e-05/0.3193, allocations: 0 / 449.6 MB, free: 1.984 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 662 * Number of variables: 662 Notification: Performance of Generate backend data structure: time 0.006219/0.3256, allocations: 2.591 MB / 452.2 MB, free: 15.33 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.595e-05/0.3256, allocations: 12.03 kB / 452.2 MB, free: 15.32 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001242/0.3269, allocations: 373.1 kB / 452.6 MB, free: 14.95 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002915/0.3298, allocations: 1.462 MB / 454 MB, free: 13.43 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000189/0.33, allocations: 201.6 kB / 454.2 MB, free: 13.23 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004647/0.3305, allocations: 271.8 kB / 454.5 MB, free: 12.97 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006169/0.3367, allocations: 2.478 MB / 457 MB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.62e-05/0.3368, allocations: 11.94 kB / 457 MB, free: 10.36 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003028/0.3371, allocations: 104 kB / 457.1 MB, free: 10.26 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.606e-05/0.3372, allocations: 67.98 kB / 457.2 MB, free: 10.2 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005221/0.3424, allocations: 1.694 MB / 458.9 MB, free: 8.488 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01938/0.3618, allocations: 10.45 MB / 469.3 MB, free: 13.54 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002693/0.3645, allocations: 0.8827 MB / 470.2 MB, free: 12.62 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001553/0.3661, allocations: 0.5191 MB / 470.7 MB, free: 12.1 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.437e-05/0.3662, allocations: 16.92 kB / 470.7 MB, free: 12.09 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.27e-05/0.3663, allocations: 47.56 kB / 470.8 MB, free: 12.03 MB / 346.7 MB Notification: Performance of pre-optimization done (n=84): time 4.518e-06/0.3663, allocations: 0 / 470.8 MB, free: 12.03 MB / 346.7 MB Notification: Performance of matching and sorting (n=90): time 0.007578/0.3739, allocations: 2.795 MB / 473.6 MB, free: 9.172 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.265e-05/0.374, allocations: 115.8 kB / 473.7 MB, free: 9.035 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003008/0.377, allocations: 1.558 MB / 475.2 MB, free: 7.477 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.415e-05/0.3771, allocations: 41.7 kB / 475.3 MB, free: 7.43 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001188/0.3783, allocations: 1.285 MB / 476.6 MB, free: 6.129 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003761/0.3787, allocations: 343.2 kB / 476.9 MB, free: 5.789 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.157e-05/0.3788, allocations: 40 kB / 476.9 MB, free: 5.75 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001923/0.379, allocations: 361.9 kB / 477.3 MB, free: 5.391 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00124/0.3802, allocations: 427.8 kB / 477.7 MB, free: 4.973 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001807/0.382, allocations: 1.128 MB / 478.8 MB, free: 3.508 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00309/0.3851, allocations: 1.648 MB / 480.5 MB, free: 1.527 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-05/0.3852, allocations: 7.938 kB / 480.5 MB, free: 1.52 MB / 346.7 MB Notification: Performance of matching and sorting (n=214) (initialization): time 0.004216/0.3894, allocations: 1.711 MB / 482.2 MB, free: 15.8 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006273/0.39, allocations: 0.7885 MB / 483 MB, free: 14.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.594e-05/0.3901, allocations: 27.94 kB / 483 MB, free: 14.65 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002124/0.3903, allocations: 60.84 kB / 483.1 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001853/0.3922, allocations: 407.4 kB / 483.5 MB, free: 14.19 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001317/0.3935, allocations: 1.327 MB / 484.8 MB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001683/0.3952, allocations: 103.9 kB / 484.9 MB, free: 12.63 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001302/0.3954, allocations: 80 kB / 485 MB, free: 12.55 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.965e-06/0.3954, allocations: 4 kB / 485 MB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00269/0.3981, allocations: 1.474 MB / 486.5 MB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.742e-05/0.3981, allocations: 24 kB / 486.5 MB, free: 11.05 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000126/0.3983, allocations: 56.84 kB / 486.5 MB, free: 10.99 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001345/0.3996, allocations: 391.4 kB / 486.9 MB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009228/0.4006, allocations: 1.327 MB / 488.2 MB, free: 9.145 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001121/0.4017, allocations: 87.97 kB / 488.3 MB, free: 9.059 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000101/0.4018, allocations: 80 kB / 488.4 MB, free: 8.98 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * Number of states: 0 () * Number of discrete variables: 3 (switch.control,dcdcInverter2.idealDcDc.powerController.local_reset,dcdcInverter1.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Number of clocked 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.0009786/0.4028, allocations: 0.5637 MB / 489 MB, free: 8.406 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002262/0.403, allocations: 173.8 kB / 489.1 MB, free: 8.234 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001973/0.405, allocations: 0.95 MB / 490.1 MB, free: 7.27 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.568e-06/0.405, allocations: 12 kB / 490.1 MB, free: 7.258 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.405, allocations: 0 / 490.1 MB, free: 7.258 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.041e-05/0.4051, allocations: 3.984 kB / 490.1 MB, free: 7.254 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004533/0.4096, allocations: 2.966 MB / 493.1 MB, free: 4.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.033e-06/0.4096, allocations: 4 kB / 493.1 MB, free: 4.176 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007815/0.4104, allocations: 191.8 kB / 493.3 MB, free: 3.988 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.249e-05/0.4105, allocations: 33 kB / 493.3 MB, free: 3.953 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.769e-05/0.4106, allocations: 20 kB / 493.3 MB, free: 3.934 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000841/0.4114, allocations: 1.292 MB / 494.6 MB, free: 2.508 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.073e-05/0.4114, allocations: 4 kB / 494.6 MB, free: 2.504 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002286/0.4137, allocations: 1.512 MB / 496.1 MB, free: 0.9336 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005007/0.4143, allocations: 334.8 kB / 496.5 MB, free: 0.5859 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001657/0.4144, allocations: 24 kB / 496.5 MB, free: 0.5625 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006566/0.4151, allocations: 67.95 kB / 496.5 MB, free: 0.4961 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001298/0.4152, allocations: 68.44 kB / 496.6 MB, free: 440 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.683e-05/0.4153, allocations: 35.94 kB / 496.6 MB, free: 404 kB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001407/0.4167, allocations: 1.016 MB / 497.7 MB, free: 15.39 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4167, allocations: 0 / 497.7 MB, free: 15.39 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002207/0.4189, allocations: 0.7695 MB / 498.4 MB, free: 14.62 MB / 378.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.idealDcDc.deadTime.y,dcdcInverter1.idealDcDc.powerController.y,dcdcInverter1.vMotFilter.y,dcdcInverter1.iDCFilter.y,dcdcInverter2.vDCFilter.y,dcdcInverter2.iMotFilter.y,dcdcInverter2.idealDcDc.deadTime.y,dcdcInverter2.idealDcDc.powerController.y,dcdcInverter2.vMotFilter.y,dcdcInverter2.iDCFilter.y) * Number of discrete variables: 1 (switch.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 88 * 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.0002487/0.4192, allocations: 153.2 kB / 498.6 MB, free: 14.46 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003395/0.4226, allocations: 2.062 MB / 0.4889 GB, free: 12.38 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.4226, allocations: 0 / 0.4889 GB, free: 12.38 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008647/0.4235, allocations: 0.5459 MB / 0.4894 GB, free: 11.82 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002442/0.4259, allocations: 407.4 kB / 0.4898 GB, free: 11.43 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006351/0.4323, allocations: 4.913 MB / 0.4946 GB, free: 6.438 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001023/0.4333, allocations: 1.479 MB / 0.4961 GB, free: 4.922 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003433/0.4337, allocations: 119.4 kB / 0.4962 GB, free: 4.805 MB / 378.7 MB Notification: Performance of SimCode: time 6.12e-07/0.4337, allocations: 0 / 0.4962 GB, free: 4.805 MB / 378.7 MB Notification: Performance of Templates: time 0.182/0.6157, allocations: 35.94 MB / 0.5313 GB, free: 66.51 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive --alarm=480 > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe 2>&1)