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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive,fileNamePrefix="Modelica_trunk_cpp_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_cpp_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.0009403/0.0009401, allocations: 192.1 kB / 17.38 MB, free: 4.285 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.237/1.237, allocations: 226.5 MB / 244.7 MB, free: 6.473 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008052/0.0008052, allocations: 107.9 kB / 296.7 MB, free: 6.691 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002241/0.0002242, allocations: 8 kB / 356.8 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2089/0.2091, allocations: 51.29 MB / 408.1 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive): time 0.01401/0.2232, allocations: 20.55 MB / 428.7 MB, free: 7.066 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01013/0.2334, allocations: 6.404 MB / 435.1 MB, free: 0.6602 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00365/0.237, allocations: 99.62 kB / 435.2 MB, free: 0.5625 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001709/0.2388, allocations: 0.6289 MB / 435.8 MB, free: 15.93 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001946/0.2407, allocations: 0.7094 MB / 436.5 MB, free: 15.21 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001152/0.2419, allocations: 479.4 kB / 437 MB, free: 14.74 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003272/0.2452, allocations: 3.207 MB / 440.2 MB, free: 11.53 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00216/0.2473, allocations: 1.712 MB / 441.9 MB, free: 9.754 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001415/0.2488, allocations: 0.9645 MB / 442.9 MB, free: 8.785 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001056/0.2498, allocations: 1.1 MB / 444 MB, free: 7.68 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002238/0.2501, allocations: 156 kB / 444.1 MB, free: 7.527 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004243/0.2505, allocations: 192 kB / 444.3 MB, free: 7.34 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003435/0.2509, allocations: 461.9 kB / 444.8 MB, free: 6.887 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001106/0.252, allocations: 1.296 MB / 446.1 MB, free: 5.578 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003063/0.255, allocations: 3.638 MB / 449.7 MB, free: 1.93 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.2551, allocations: 0 / 449.7 MB, free: 1.93 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2551, allocations: 0 / 449.7 MB, free: 1.93 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.583e-05/0.2551, allocations: 0 / 449.7 MB, free: 1.93 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.004356/0.2595, allocations: 2.591 MB / 452.3 MB, free: 15.28 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.2e-05/0.2595, allocations: 16.02 kB / 452.3 MB, free: 15.26 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003911/0.2599, allocations: 351 kB / 452.7 MB, free: 14.91 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000805/0.2608, allocations: 377.1 kB / 453 MB, free: 14.54 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002041/0.2628, allocations: 1.458 MB / 454.5 MB, free: 13.02 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001358/0.263, allocations: 201.3 kB / 454.7 MB, free: 12.82 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003108/0.2633, allocations: 271.8 kB / 454.9 MB, free: 12.55 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004427/0.2677, allocations: 2.474 MB / 457.4 MB, free: 9.969 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.03e-05/0.2678, allocations: 7.938 kB / 457.4 MB, free: 9.961 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001829/0.268, allocations: 112 kB / 457.5 MB, free: 9.852 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.139e-05/0.268, allocations: 64 kB / 457.6 MB, free: 9.789 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00332/0.2714, allocations: 1.69 MB / 459.3 MB, free: 8.086 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01276/0.2841, allocations: 10.45 MB / 469.7 MB, free: 13.13 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001668/0.2858, allocations: 0.8905 MB / 470.6 MB, free: 12.21 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009713/0.2868, allocations: 0.5113 MB / 471.1 MB, free: 11.7 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.033e-05/0.2869, allocations: 16.98 kB / 471.2 MB, free: 11.68 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.727e-05/0.2869, allocations: 39.56 kB / 471.2 MB, free: 11.63 MB / 346.7 MB Notification: Performance of pre-optimization done (n=84): time 2.354e-06/0.2869, allocations: 0 / 471.2 MB, free: 11.63 MB / 346.7 MB Notification: Performance of matching and sorting (n=90): time 0.004814/0.2917, allocations: 2.8 MB / 474 MB, free: 8.773 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.386e-05/0.2918, allocations: 111.8 kB / 474.1 MB, free: 8.641 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001893/0.2937, allocations: 1.565 MB / 475.7 MB, free: 7.074 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.119e-05/0.2938, allocations: 41.7 kB / 475.7 MB, free: 7.027 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007911/0.2946, allocations: 1.289 MB / 477 MB, free: 5.723 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002245/0.2948, allocations: 339.2 kB / 477.3 MB, free: 5.387 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.739e-05/0.2948, allocations: 36 kB / 477.4 MB, free: 5.352 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.295, allocations: 365.9 kB / 477.7 MB, free: 4.988 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007869/0.2958, allocations: 423.8 kB / 478.1 MB, free: 4.574 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001178/0.297, allocations: 1.136 MB / 479.3 MB, free: 3.102 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002144/0.2991, allocations: 1.648 MB / 480.9 MB, free: 1.121 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.306e-05/0.2992, allocations: 8 kB / 480.9 MB, free: 1.113 MB / 346.7 MB Notification: Performance of matching and sorting (n=214) (initialization): time 0.002893/0.3021, allocations: 1.723 MB / 482.6 MB, free: 15.38 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00055/0.3026, allocations: 0.7924 MB / 483.4 MB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.66e-05/0.3026, allocations: 24 kB / 483.5 MB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001863/0.3028, allocations: 52.86 kB / 483.5 MB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001174/0.304, allocations: 411.3 kB / 483.9 MB, free: 13.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009495/0.305, allocations: 1.327 MB / 485.2 MB, free: 12.31 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001117/0.3061, allocations: 103.9 kB / 485.3 MB, free: 12.21 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.009e-05/0.3062, allocations: 80 kB / 485.4 MB, free: 12.13 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.461e-06/0.3062, allocations: 4 kB / 485.4 MB, free: 12.13 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002213/0.3084, allocations: 1.466 MB / 486.9 MB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.134e-05/0.3085, allocations: 24 kB / 486.9 MB, free: 10.64 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001066/0.3086, allocations: 60.88 kB / 487 MB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001102/0.3097, allocations: 395.3 kB / 487.4 MB, free: 10.19 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008196/0.3105, allocations: 1.319 MB / 488.7 MB, free: 8.734 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009963/0.3115, allocations: 83.98 kB / 488.8 MB, free: 8.652 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.782e-05/0.3116, allocations: 87.98 kB / 488.8 MB, free: 8.566 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.0009245/0.3126, allocations: 0.559 MB / 489.4 MB, free: 7.996 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002026/0.3128, allocations: 173.8 kB / 489.6 MB, free: 7.824 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001681/0.3145, allocations: 0.95 MB / 490.5 MB, free: 6.859 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.253e-06/0.3145, allocations: 8 kB / 490.5 MB, free: 6.852 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.3145, allocations: 0 / 490.5 MB, free: 6.852 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.1e-05/0.3145, allocations: 7.969 kB / 490.5 MB, free: 6.844 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004099/0.3186, allocations: 2.965 MB / 493.5 MB, free: 3.773 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.101e-06/0.3186, allocations: 4.469 kB / 493.5 MB, free: 3.77 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008081/0.3195, allocations: 195.8 kB / 493.7 MB, free: 3.578 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.225e-05/0.3196, allocations: 28.84 kB / 493.7 MB, free: 3.547 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.67e-05/0.3196, allocations: 27.98 kB / 493.8 MB, free: 3.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007946/0.3204, allocations: 1.288 MB / 495 MB, free: 2.098 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.3204, allocations: 4 kB / 495.1 MB, free: 2.094 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002242/0.3227, allocations: 1.519 MB / 496.6 MB, free: 0.5195 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004411/0.3231, allocations: 326.8 kB / 496.9 MB, free: 184 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001624/0.3233, allocations: 20 kB / 496.9 MB, free: 164 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006728/0.324, allocations: 71.89 kB / 497 MB, free: 92 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001409/0.3241, allocations: 72.45 kB / 497 MB, free: 20 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.821e-05/0.3242, allocations: 28.05 kB / 497.1 MB, free: 15.99 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001346/0.3256, allocations: 1.02 MB / 498.1 MB, free: 14.98 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3256, allocations: 0 / 498.1 MB, free: 14.98 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002138/0.3277, allocations: 0.7617 MB / 498.9 MB, free: 14.22 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.002701/0.3304, allocations: 2.122 MB / 0.4892 GB, free: 12.02 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003643/0.3341, allocations: 2.062 MB / 0.4913 GB, free: 9.938 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.3341, allocations: 0 / 0.4913 GB, free: 9.938 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008722/0.335, allocations: 0.5428 MB / 0.4918 GB, free: 9.383 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002737/0.3377, allocations: 411.1 kB / 0.4922 GB, free: 8.992 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1721/0.5099, allocations: 11.94 MB / 0.5038 GB, free: 89.43 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008136/0.5107, allocations: 1.481 MB / 0.5053 GB, free: 88.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008655/0.5116, allocations: 0.9337 MB / 0.5062 GB, free: 87.95 MB / 378.7 MB Notification: Performance of SimCode: time 9.92e-07/0.5116, allocations: 0 / 0.5062 GB, free: 87.95 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.253/4.765, allocations: 42.97 MB / 0.5482 GB, free: 51 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Drive_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Drive.fmu > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe 2>&1)