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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.0006609/0.0006608, allocations: 95 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007941/0.0007941, allocations: 206.1 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.232/1.232, allocations: 227.7 MB / 246.8 MB, free: 11.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002074/0.0002074, allocations: 8 kB / 307.9 MB, free: 0.7227 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08001/0.08023, allocations: 51.51 MB / 359.4 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive): time 0.1659/0.2462, allocations: 22.17 MB / 381.5 MB, free: 8.727 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01153/0.2578, allocations: 6.628 MB / 388.2 MB, free: 5.344 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004334/0.2621, allocations: 96.47 kB / 388.3 MB, free: 5.324 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00207/0.2642, allocations: 0.6749 MB / 388.9 MB, free: 5.008 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002618/0.2669, allocations: 0.738 MB / 389.7 MB, free: 4.477 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001314/0.2682, allocations: 0.7072 MB / 390.4 MB, free: 3.961 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00324/0.2714, allocations: 3.244 MB / 393.6 MB, free: 2.258 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001892/0.2733, allocations: 1.706 MB / 395.3 MB, free: 1.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001455/0.2748, allocations: 0.9948 MB / 396.3 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001003/0.2758, allocations: 1.149 MB / 397.5 MB, free: 272 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002328/0.2761, allocations: 155.2 kB / 397.6 MB, free: 272 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004425/0.2765, allocations: 190.5 kB / 397.8 MB, free: 264 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002841/0.2768, allocations: 464.4 kB / 398.3 MB, free: 15.95 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001118/0.2779, allocations: 1.36 MB / 399.6 MB, free: 15.09 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003163/0.2811, allocations: 4.178 MB / 403.8 MB, free: 11.98 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.2811, allocations: 0 / 403.8 MB, free: 11.98 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.624e-06/0.2811, allocations: 1.312 kB / 403.8 MB, free: 11.98 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.203e-05/0.2812, allocations: 0 / 403.8 MB, free: 11.98 MB / 318.1 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.00409/0.2853, allocations: 2.586 MB / 406.4 MB, free: 10.16 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/0.2853, allocations: 9.562 kB / 406.4 MB, free: 10.16 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003604/0.2857, allocations: 353.5 kB / 406.7 MB, free: 9.883 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008288/0.2865, allocations: 368.2 kB / 407.1 MB, free: 9.715 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001896/0.2884, allocations: 1.455 MB / 408.6 MB, free: 8.547 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001118/0.2885, allocations: 197.2 kB / 408.7 MB, free: 8.453 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002741/0.2888, allocations: 263.2 kB / 409 MB, free: 8.363 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003739/0.2926, allocations: 2.479 MB / 411.5 MB, free: 6.824 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.114e-05/0.2926, allocations: 19.95 kB / 411.5 MB, free: 6.809 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001788/0.2928, allocations: 102.8 kB / 411.6 MB, free: 6.73 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.411e-05/0.2929, allocations: 71.31 kB / 411.7 MB, free: 6.723 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003058/0.2959, allocations: 1.694 MB / 413.4 MB, free: 5.105 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01156/0.3075, allocations: 10.37 MB / 423.7 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001607/0.3091, allocations: 0.882 MB / 424.6 MB, free: 9.32 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009318/0.3101, allocations: 0.4956 MB / 425.1 MB, free: 8.828 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.524e-05/0.3101, allocations: 13 kB / 425.1 MB, free: 8.816 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.538e-05/0.3102, allocations: 43.5 kB / 425.2 MB, free: 8.762 MB / 334.1 MB Notification: Performance of pre-optimization done (n=83): time 2.625e-06/0.3102, allocations: 0 / 425.2 MB, free: 8.762 MB / 334.1 MB Notification: Performance of matching and sorting (n=89): time 0.004946/0.3151, allocations: 2.769 MB / 427.9 MB, free: 5.93 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.611e-05/0.3152, allocations: 119.8 kB / 428.1 MB, free: 5.789 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001831/0.3171, allocations: 1.573 MB / 429.6 MB, free: 4.215 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.394e-05/0.3171, allocations: 41.7 kB / 429.7 MB, free: 4.168 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007484/0.3179, allocations: 1.292 MB / 431 MB, free: 2.859 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002215/0.3181, allocations: 323.4 kB / 431.3 MB, free: 2.539 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001402/0.3183, allocations: 137.6 kB / 431.4 MB, free: 2.398 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.51e-05/0.3183, allocations: 305.1 kB / 431.7 MB, free: 2.098 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007961/0.3191, allocations: 427.8 kB / 432.1 MB, free: 1.68 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001193/0.3204, allocations: 1.127 MB / 433.3 MB, free: 224 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002022/0.3224, allocations: 1.658 MB / 434.9 MB, free: 14.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.036e-05/0.3224, allocations: 8 kB / 434.9 MB, free: 14.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=213) (initialization): time 0.002752/0.3252, allocations: 1.72 MB / 436.6 MB, free: 12.49 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004529/0.3256, allocations: 0.7791 MB / 437.4 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.645e-05/0.3257, allocations: 24 kB / 437.4 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001737/0.3258, allocations: 60.84 kB / 437.5 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001171/0.327, allocations: 411.3 kB / 437.9 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008982/0.3279, allocations: 1.327 MB / 439.2 MB, free: 9.434 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001149/0.3291, allocations: 92.03 kB / 439.3 MB, free: 9.344 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.786e-05/0.3292, allocations: 84 kB / 439.4 MB, free: 9.262 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.725e-06/0.3292, allocations: 7.938 kB / 439.4 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002182/0.3314, allocations: 1.47 MB / 440.9 MB, free: 7.777 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.196e-05/0.3314, allocations: 24 kB / 440.9 MB, free: 7.754 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000108/0.3315, allocations: 56.78 kB / 441 MB, free: 7.695 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001082/0.3326, allocations: 399.7 kB / 441.3 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000801/0.3334, allocations: 1.319 MB / 442.7 MB, free: 5.852 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001063/0.3345, allocations: 83.91 kB / 442.7 MB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.243e-05/0.3346, allocations: 80 kB / 442.8 MB, free: 5.691 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 107 * 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 (212): * Single equations (assignments): 211 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008945/0.3355, allocations: 0.56 MB / 443.4 MB, free: 5.121 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002178/0.3357, allocations: 177.9 kB / 443.6 MB, free: 4.945 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001685/0.3374, allocations: 0.9461 MB / 444.5 MB, free: 3.984 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.817e-06/0.3375, allocations: 11.94 kB / 444.5 MB, free: 3.973 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.3375, allocations: 0 / 444.5 MB, free: 3.973 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.488e-06/0.3375, allocations: 3.984 kB / 444.5 MB, free: 3.969 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004267/0.3418, allocations: 2.933 MB / 447.5 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.089e-06/0.3418, allocations: 4 kB / 447.5 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008095/0.3426, allocations: 199.6 kB / 447.7 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.96e-05/0.3427, allocations: 33.09 kB / 447.7 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.758e-05/0.3428, allocations: 24 kB / 447.7 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009233/0.3437, allocations: 1.288 MB / 449 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.3437, allocations: 4 kB / 449 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002377/0.3461, allocations: 1.513 MB / 450.5 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005581/0.3467, allocations: 326.8 kB / 450.8 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000162/0.3468, allocations: 24 kB / 450.9 MB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000715/0.3476, allocations: 67.95 kB / 450.9 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001288/0.3477, allocations: 64.45 kB / 451 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.494e-05/0.3477, allocations: 31.98 kB / 451 MB, free: 13.15 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001374/0.3491, allocations: 1.024 MB / 452 MB, free: 12.14 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3491, allocations: 0 / 452 MB, free: 12.14 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002337/0.3515, allocations: 0.7735 MB / 452.8 MB, free: 11.36 MB / 366.1 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 (88): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002689/0.3542, allocations: 2.101 MB / 454.9 MB, free: 9.188 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003469/0.3577, allocations: 2.07 MB / 457 MB, free: 7.102 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.3577, allocations: 0 / 457 MB, free: 7.102 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008545/0.3585, allocations: 0.5346 MB / 457.5 MB, free: 6.551 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002538/0.3611, allocations: 414.9 kB / 457.9 MB, free: 6.152 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02525/0.3863, allocations: 17.96 MB / 475.9 MB, free: 2.355 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001186/0.3876, allocations: 1.479 MB / 477.4 MB, free: 0.8438 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00109/0.3887, allocations: 242.3 kB / 477.6 MB, free: 0.6016 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001013/0.3897, allocations: 0.9133 MB / 478.5 MB, free: 15.68 MB / 398.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3897, allocations: 4 kB / 478.5 MB, free: 15.68 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05648/0.4462, allocations: 35.35 MB / 0.5018 GB, free: 12.68 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001806/0.4464, allocations: 231.7 kB / 0.502 GB, free: 12.43 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.329/2.776, allocations: 0 / 0.502 GB, free: 12.43 MB / 430.1 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/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)