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.001526/0.001526, allocations: 103.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001823/0.001823, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.287/1.287, allocations: 227.4 MB / 246.3 MB, free: 10.74 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001349/0.001349, allocations: 65.86 kB / 306.4 MB, free: 0.957 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08563/0.087, allocations: 50.54 MB / 356.9 MB, free: 14.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive): time 0.1838/0.2709, allocations: 23.11 MB / 380 MB, free: 9.613 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01133/0.2823, allocations: 6.666 MB / 386.7 MB, free: 5.578 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003271/0.2856, allocations: 102.8 kB / 386.8 MB, free: 5.555 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001966/0.2876, allocations: 0.6742 MB / 387.4 MB, free: 5.238 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002146/0.2897, allocations: 0.7291 MB / 388.2 MB, free: 4.715 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001369/0.2911, allocations: 0.7084 MB / 388.9 MB, free: 4.191 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00303/0.2942, allocations: 3.242 MB / 392.1 MB, free: 2.477 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002041/0.2962, allocations: 1.727 MB / 393.9 MB, free: 1.551 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001508/0.2977, allocations: 1.138 MB / 395 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001147/0.2989, allocations: 1.321 MB / 396.3 MB, free: 284 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004244/0.2993, allocations: 221 kB / 396.5 MB, free: 284 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007444/0.3001, allocations: 258.9 kB / 396.8 MB, free: 276 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003453/0.3004, allocations: 0.5457 MB / 397.3 MB, free: 15.89 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001244/0.3017, allocations: 1.461 MB / 398.8 MB, free: 14.97 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003566/0.3053, allocations: 4.31 MB / 403.1 MB, free: 11.82 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.3053, allocations: 4 kB / 403.1 MB, free: 11.82 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.3053, allocations: 0 / 403.1 MB, free: 11.82 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001014/0.3054, allocations: 0 / 403.1 MB, free: 11.82 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.005588/0.311, allocations: 3.064 MB / 406.2 MB, free: 9.621 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.473e-05/0.311, allocations: 9.344 kB / 406.2 MB, free: 9.621 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005057/0.3116, allocations: 349.5 kB / 406.5 MB, free: 9.352 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009248/0.3125, allocations: 367.1 kB / 406.9 MB, free: 9.18 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001999/0.3145, allocations: 1.457 MB / 408.3 MB, free: 8.012 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001091/0.3146, allocations: 200.3 kB / 408.5 MB, free: 7.918 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002691/0.3149, allocations: 261 kB / 408.8 MB, free: 7.828 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003962/0.3189, allocations: 2.471 MB / 411.3 MB, free: 6.23 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.759e-05/0.3189, allocations: 11.91 kB / 411.3 MB, free: 6.219 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001817/0.3191, allocations: 104 kB / 411.4 MB, free: 6.117 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.465e-05/0.3192, allocations: 64 kB / 411.4 MB, free: 6.055 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003292/0.3225, allocations: 1.663 MB / 413.1 MB, free: 4.379 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01222/0.3347, allocations: 10.3 MB / 423.4 MB, free: 9.57 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00193/0.3367, allocations: 0.8513 MB / 424.2 MB, free: 8.691 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009208/0.3376, allocations: 492.3 kB / 424.7 MB, free: 8.211 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.223e-05/0.3377, allocations: 12.98 kB / 424.7 MB, free: 8.199 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.392e-05/0.3377, allocations: 47.5 kB / 424.8 MB, free: 8.141 MB / 334.1 MB Notification: Performance of pre-optimization done (n=83): time 2.876e-06/0.3377, allocations: 4 kB / 424.8 MB, free: 8.137 MB / 334.1 MB Notification: Performance of matching and sorting (n=89): time 0.005048/0.3428, allocations: 2.667 MB / 427.4 MB, free: 5.41 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.428e-05/0.3429, allocations: 123.7 kB / 427.6 MB, free: 5.266 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001965/0.3448, allocations: 1.573 MB / 429.1 MB, free: 3.691 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.122e-05/0.3449, allocations: 41.7 kB / 429.2 MB, free: 3.645 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000976/0.3459, allocations: 1.277 MB / 430.5 MB, free: 2.352 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002219/0.3461, allocations: 331.3 kB / 430.8 MB, free: 2.023 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003589/0.3465, allocations: 307.2 kB / 431.1 MB, free: 1.719 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.548e-05/0.3466, allocations: 305.1 kB / 431.4 MB, free: 1.418 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000779/0.3474, allocations: 420.6 kB / 431.8 MB, free: 1.004 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001207/0.3486, allocations: 1.111 MB / 432.9 MB, free: 15.56 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002363/0.351, allocations: 1.607 MB / 434.5 MB, free: 13.62 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.21e-05/0.351, allocations: 8 kB / 434.5 MB, free: 13.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=213) (initialization): time 0.002759/0.3537, allocations: 1.677 MB / 436.2 MB, free: 11.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.631e-05/0.3538, allocations: 15.94 kB / 436.2 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.572e-05/0.3538, allocations: 27.98 kB / 436.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001834/0.354, allocations: 52.86 kB / 436.3 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001186/0.3552, allocations: 395.4 kB / 436.7 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009529/0.3562, allocations: 1.33 MB / 438 MB, free: 9.977 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001399/0.3576, allocations: 92.02 kB / 438.1 MB, free: 9.887 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001003/0.3577, allocations: 80 kB / 438.2 MB, free: 9.809 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001522/0.3592, allocations: 0.7393 MB / 438.9 MB, free: 9.066 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001158/0.3604, allocations: 1.088 MB / 440 MB, free: 7.648 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001812/0.3622, allocations: 1.569 MB / 441.6 MB, free: 5.754 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.204e-05/0.3622, allocations: 8 kB / 441.6 MB, free: 5.746 MB / 350.1 MB Notification: Performance of matching and sorting (n=213) (initialization_lambda0): time 0.002702/0.3649, allocations: 1.629 MB / 443.2 MB, free: 4.102 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.242e-05/0.365, allocations: 12 kB / 443.2 MB, free: 4.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.133e-05/0.365, allocations: 24 kB / 443.2 MB, free: 4.066 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001234/0.3651, allocations: 61.41 kB / 443.3 MB, free: 4.004 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001118/0.3663, allocations: 387.4 kB / 443.7 MB, free: 3.625 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008552/0.3671, allocations: 1.323 MB / 445 MB, free: 2.168 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001207/0.3684, allocations: 79.84 kB / 445.1 MB, free: 2.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.875e-05/0.3685, allocations: 80 kB / 445.2 MB, free: 2.012 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.0003529/0.3688, allocations: 299.6 kB / 445.5 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002402/0.3691, allocations: 177.9 kB / 445.6 MB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001687/0.3708, allocations: 0.907 MB / 446.5 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.214e-06/0.3708, allocations: 12 kB / 446.5 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.3708, allocations: 0 / 446.5 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.646e-06/0.3708, allocations: 3.984 kB / 446.6 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004138/0.3749, allocations: 2.89 MB / 449.4 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.727e-06/0.375, allocations: 4 kB / 449.4 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008302/0.3758, allocations: 188.2 kB / 449.6 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.118e-05/0.3759, allocations: 24.86 kB / 449.7 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.071e-05/0.376, allocations: 31.92 kB / 449.7 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007758/0.3768, allocations: 1.285 MB / 451 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.868e-06/0.3768, allocations: 7.938 kB / 451 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002184/0.379, allocations: 1.451 MB / 452.4 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004967/0.3795, allocations: 322.8 kB / 452.7 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001966/0.3797, allocations: 28 kB / 452.8 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007379/0.3804, allocations: 55.95 kB / 452.8 MB, free: 9.992 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001191/0.3806, allocations: 64.45 kB / 452.9 MB, free: 9.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.802e-05/0.3806, allocations: 31.98 kB / 452.9 MB, free: 9.898 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001476/0.3821, allocations: 1.02 MB / 453.9 MB, free: 8.887 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.3821, allocations: 4 kB / 453.9 MB, free: 8.883 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002278/0.3844, allocations: 0.7656 MB / 454.7 MB, free: 8.117 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.002868/0.3873, allocations: 2.055 MB / 456.8 MB, free: 5.992 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003446/0.3907, allocations: 2.015 MB / 458.8 MB, free: 3.961 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.06e-06/0.3908, allocations: 0 / 458.8 MB, free: 3.961 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001074/0.3918, allocations: 0.516 MB / 459.3 MB, free: 3.43 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002207/0.3941, allocations: 414.4 kB / 459.7 MB, free: 3.035 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0265/0.4206, allocations: 17.72 MB / 477.4 MB, free: 15.48 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001122/0.4217, allocations: 1.471 MB / 478.9 MB, free: 13.97 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001167/0.4229, allocations: 246.3 kB / 479.1 MB, free: 13.73 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009939/0.4239, allocations: 0.9171 MB / 480 MB, free: 12.81 MB / 398.1 MB Notification: Performance of SimCode: time 8.71e-07/0.424, allocations: 0 / 480 MB, free: 12.81 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0916/0.5156, allocations: 35.72 MB / 0.5037 GB, free: 9.383 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001806/0.5158, allocations: 234.7 kB / 0.5039 GB, free: 9.133 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.863/3.379, allocations: 0 / 0.5039 GB, free: 9.133 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)