Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDC,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDC,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009948/0.0009949, allocations: 98.12 kB / 16.3 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001135/0.001135, allocations: 185.7 kB / 17.2 MB, free: 5.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.355/1.355, allocations: 205.4 MB / 223.4 MB, free: 13.17 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1732/0.1732, allocations: 38.05 MB / 309.7 MB, free: 6.129 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005651/0.0005652, allocations: 12 kB / 376.6 MB, free: 3.109 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.257/0.2576, allocations: 56.32 MB / 432.9 MB, free: 18.82 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.005923/0.2636, allocations: 6.922 MB / 439.8 MB, free: 11.87 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004044/0.2676, allocations: 3.025 MB / 442.8 MB, free: 8.836 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006347/0.2683, allocations: 47.69 kB / 442.9 MB, free: 8.789 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006393/0.269, allocations: 214.8 kB / 443.1 MB, free: 8.578 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001515/0.2705, allocations: 0.6465 MB / 443.7 MB, free: 7.93 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008264/0.2713, allocations: 279.5 kB / 444 MB, free: 7.656 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00153/0.2729, allocations: 0.8542 MB / 444.9 MB, free: 6.801 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001407/0.2743, allocations: 1.138 MB / 446 MB, free: 5.617 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005338/0.2748, allocations: 462.5 kB / 446.5 MB, free: 5.164 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005219/0.2754, allocations: 0.4983 MB / 447 MB, free: 4.664 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.706e-05/0.2755, allocations: 56 kB / 447 MB, free: 4.609 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007877/0.2763, allocations: 0.5734 MB / 447.6 MB, free: 4.035 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002732/0.2765, allocations: 391 kB / 448 MB, free: 3.652 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001614/0.2767, allocations: 253.1 kB / 448.2 MB, free: 3.398 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001029/0.2778, allocations: 1.652 MB / 449.9 MB, free: 1.742 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.2778, allocations: 0 / 449.9 MB, free: 1.742 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2778, allocations: 0 / 449.9 MB, free: 1.742 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.597e-05/0.2778, allocations: 0 / 449.9 MB, free: 1.742 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.002312/0.2801, allocations: 1.356 MB / 451.2 MB, free: 344 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.289e-05/0.2802, allocations: 8.031 kB / 451.2 MB, free: 336 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001674/0.2803, allocations: 168.7 kB / 451.4 MB, free: 156 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005858/0.2809, allocations: 170.5 kB / 451.6 MB, free: 15.98 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001321/0.2823, allocations: 0.783 MB / 452.3 MB, free: 15.15 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001915/0.2825, allocations: 212.7 kB / 452.6 MB, free: 14.92 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001519/0.2826, allocations: 99.94 kB / 452.7 MB, free: 14.82 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0021/0.2847, allocations: 1.454 MB / 454.1 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.478e-05/0.2848, allocations: 11.84 kB / 454.1 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001022/0.2849, allocations: 43.98 kB / 454.2 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001185/0.285, allocations: 77.92 kB / 454.2 MB, free: 13.17 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002047/0.2871, allocations: 1.273 MB / 455.5 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007015/0.2941, allocations: 5.231 MB / 460.7 MB, free: 6.488 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001471/0.2956, allocations: 1.035 MB / 461.8 MB, free: 5.391 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.703e-05/0.2957, allocations: 13.23 kB / 461.8 MB, free: 5.379 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.757e-05/0.2957, allocations: 39.12 kB / 461.8 MB, free: 5.332 MB / 334.1 MB Notification: Performance of pre-optimization done (n=74): time 3.176e-06/0.2957, allocations: 0 / 461.8 MB, free: 5.332 MB / 334.1 MB Notification: Performance of matching and sorting (n=78): time 0.006073/0.3018, allocations: 3.408 MB / 465.2 MB, free: 1.789 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.081e-05/0.3019, allocations: 115.4 kB / 465.4 MB, free: 1.652 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007931/0.3027, allocations: 0.6796 MB / 466 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.453e-05/0.3027, allocations: 37.7 kB / 466.1 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003033/0.3031, allocations: 486.7 kB / 466.5 MB, free: 448 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001928/0.3033, allocations: 268.2 kB / 466.8 MB, free: 176 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.693e-05/0.3033, allocations: 20 kB / 466.8 MB, free: 156 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001752/0.3035, allocations: 386.8 kB / 467.2 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006556/0.3041, allocations: 445.8 kB / 467.6 MB, free: 15.33 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008991/0.3051, allocations: 0.7126 MB / 468.3 MB, free: 14.49 MB / 350.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: bldcm.rotor.w = bldcm.rotor.w_start (loadInertia.w_start = bldcm.rotor.w_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.003903/0.309, allocations: 1.572 MB / 469.9 MB, free: 12.9 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.094e-06/0.309, allocations: 4 kB / 469.9 MB, free: 12.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002158/0.3112, allocations: 1.404 MB / 471.3 MB, free: 11.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.946e-05/0.3112, allocations: 16.03 kB / 471.3 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.566e-05/0.3112, allocations: 8 kB / 471.4 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002832/0.3115, allocations: 110.5 kB / 471.5 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007822/0.3123, allocations: 215.6 kB / 471.7 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001948/0.3143, allocations: 2.747 MB / 474.4 MB, free: 8.098 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006842/0.315, allocations: 88.03 kB / 474.5 MB, free: 8.012 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.607e-05/0.315, allocations: 40 kB / 474.5 MB, free: 7.973 MB / 350.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: bldcm.rotor.w = bldcm.rotor.w_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,bldcm.inverter.modulator.gates[1],bldcm.inverter.modulator.gates[2],bldcm.inverter.modulator.gates[3],bldcm.inverter.modulator.gates[4],bldcm.inverter.modulator.gates[5],bldcm.inverter.modulator.gates[6]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 110 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006559/0.3157, allocations: 421.8 kB / 475 MB, free: 7.551 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001684/0.3159, allocations: 83.19 kB / 475 MB, free: 7.469 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001701/0.3176, allocations: 1.09 MB / 476.1 MB, free: 6.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.939e-05/0.3176, allocations: 12 kB / 476.1 MB, free: 6.328 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.3176, allocations: 8 kB / 476.1 MB, free: 6.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.769e-06/0.3176, allocations: 7.938 kB / 476.2 MB, free: 6.312 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003489/0.3211, allocations: 2.373 MB / 478.5 MB, free: 3.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.3212, allocations: 0 / 478.5 MB, free: 3.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006783/0.3218, allocations: 147.8 kB / 478.7 MB, free: 3.695 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001251/0.322, allocations: 45.7 kB / 478.7 MB, free: 3.645 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.591e-05/0.322, allocations: 12 kB / 478.7 MB, free: 3.633 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001781/0.3238, allocations: 2.684 MB / 481.4 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.3238, allocations: 4.031 kB / 481.4 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002353/0.3262, allocations: 1.786 MB / 483.2 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004192/0.3266, allocations: 252 kB / 483.4 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001066/0.3267, allocations: 16 kB / 483.5 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004871/0.3272, allocations: 63.72 kB / 483.5 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001415/0.3274, allocations: 56.47 kB / 483.6 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.162e-05/0.3274, allocations: 16 kB / 483.6 MB, free: 14.41 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006256/0.3281, allocations: 486.9 kB / 484.1 MB, free: 13.95 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3281, allocations: 3.938 kB / 484.1 MB, free: 13.94 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001065/0.3292, allocations: 260 kB / 484.3 MB, free: 13.69 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 7 (efficiency.pav,efficiency.qav,bldcm.motor.i_s[1],bldcm.motor.i_s[2],bldcm.motor.i_s[3],loadInertia.w,frictTorq.phi) * Number of discrete variables: 7 (system.initime,bldcm.inverter.modulator.gates[1],bldcm.inverter.modulator.gates[2],bldcm.inverter.modulator.gates[3],bldcm.inverter.modulator.gates[4],bldcm.inverter.modulator.gates[5],bldcm.inverter.modulator.gates[6]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (69): * Single equations (assignments): 65 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002947/0.3321, allocations: 2.593 MB / 486.9 MB, free: 11.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00212/0.3342, allocations: 1.356 MB / 488.3 MB, free: 9.625 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.3343, allocations: 1.875 kB / 488.3 MB, free: 9.625 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009624/0.3352, allocations: 0.7349 MB / 489 MB, free: 8.859 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008782/0.3361, allocations: 206.7 kB / 489.2 MB, free: 8.66 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01344/0.3496, allocations: 12.79 MB / 0.4902 GB, free: 11.62 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007933/0.3504, allocations: 1.189 MB / 0.4914 GB, free: 10.4 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007794/0.3512, allocations: 250.9 kB / 0.4916 GB, free: 10.15 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004992/0.3517, allocations: 347.3 kB / 0.492 GB, free: 9.809 MB / 382.1 MB Notification: Performance of SimCode: time 1.222e-06/0.3517, allocations: 0 / 0.492 GB, free: 9.809 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03629/0.388, allocations: 19.86 MB / 0.5114 GB, free: 5.984 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00017/0.3882, allocations: 200.2 kB / 0.5116 GB, free: 5.73 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.047/2.435, allocations: 0 / 0.5116 GB, free: 5.73 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDC_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-05 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDC.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe 2>&1) Environment - environmentSimulation: