Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.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.BLDCcharSpeed,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed",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.0008998/0.0008996, allocations: 93.42 kB / 16.31 MB, free: 5.574 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.0009898/0.0009899, allocations: 180.2 kB / 17.21 MB, free: 5.496 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.555/1.555, allocations: 205.4 MB / 223.4 MB, free: 13.15 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1735/0.1735, allocations: 38.04 MB / 309.7 MB, free: 6.023 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.0005354/0.0005357, allocations: 12 kB / 376.6 MB, free: 2.984 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2975/0.2981, allocations: 56.33 MB / 432.9 MB, free: 18.78 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.00612/0.3042, allocations: 6.381 MB / 439.3 MB, free: 12.38 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00414/0.3084, allocations: 2.783 MB / 442.1 MB, free: 9.582 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006818/0.3091, allocations: 39.75 kB / 442.2 MB, free: 9.543 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000743/0.3099, allocations: 222.5 kB / 442.4 MB, free: 9.324 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001175/0.3111, allocations: 0.5794 MB / 442.9 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006432/0.3117, allocations: 263.5 kB / 443.2 MB, free: 8.484 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001392/0.3131, allocations: 1.336 MB / 444.5 MB, free: 7.145 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001022/0.3142, allocations: 0.7716 MB / 445.3 MB, free: 6.34 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005191/0.3147, allocations: 394.4 kB / 445.7 MB, free: 5.953 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006523/0.3154, allocations: 0.4983 MB / 446.2 MB, free: 5.453 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.069e-05/0.3154, allocations: 36 kB / 446.2 MB, free: 5.418 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000531/0.316, allocations: 267.5 kB / 446.5 MB, free: 5.156 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002811/0.3163, allocations: 287.2 kB / 446.8 MB, free: 4.875 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000162/0.3164, allocations: 185.3 kB / 447 MB, free: 4.688 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000872/0.3173, allocations: 1.068 MB / 448 MB, free: 3.617 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.3173, allocations: 0 / 448 MB, free: 3.617 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.795e-06/0.3174, allocations: 0 / 448 MB, free: 3.617 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.064e-05/0.3174, allocations: 0 / 448 MB, free: 3.617 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: 180 * Number of variables: 180 Notification: Performance of Generate backend data structure: time 0.001763/0.3191, allocations: 0.9966 MB / 449 MB, free: 2.57 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.78e-05/0.3192, allocations: 8.031 kB / 449 MB, free: 2.562 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001368/0.3193, allocations: 122.5 kB / 449.1 MB, free: 2.434 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000558/0.3199, allocations: 134.9 kB / 449.3 MB, free: 2.301 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009014/0.3208, allocations: 0.6466 MB / 449.9 MB, free: 1.609 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.998e-05/0.3209, allocations: 87.67 kB / 450 MB, free: 1.52 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.858e-05/0.321, allocations: 64 kB / 450.1 MB, free: 1.457 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001234/0.3223, allocations: 0.9491 MB / 451 MB, free: 472 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.862e-05/0.3223, allocations: 11.84 kB / 451 MB, free: 460 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.149e-05/0.3224, allocations: 31.95 kB / 451.1 MB, free: 428 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.433e-05/0.3225, allocations: 61.28 kB / 451.1 MB, free: 368 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001183/0.3237, allocations: 0.7741 MB / 451.9 MB, free: 15.59 MB / 334.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004809/0.3285, allocations: 3.883 MB / 455.8 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007864/0.3293, allocations: 0.5052 MB / 456.3 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004037/0.3297, allocations: 243 kB / 456.5 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.054e-05/0.3297, allocations: 11.84 kB / 456.5 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.202e-05/0.3298, allocations: 38.56 kB / 456.6 MB, free: 10.62 MB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 2.134e-06/0.3298, allocations: 4 kB / 456.6 MB, free: 10.62 MB / 334.1 MB Notification: Performance of matching and sorting (n=55): time 0.00945/0.3392, allocations: 3.778 MB / 460.4 MB, free: 6.676 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.336e-05/0.3393, allocations: 115.3 kB / 460.5 MB, free: 6.539 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006073/0.34, allocations: 0.5183 MB / 461 MB, free: 6.016 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.274e-05/0.34, allocations: 33.7 kB / 461 MB, free: 5.977 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002545/0.3403, allocations: 399 kB / 461.4 MB, free: 5.578 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001504/0.3404, allocations: 197.2 kB / 461.6 MB, free: 5.383 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.315e-05/0.3405, allocations: 8 kB / 461.6 MB, free: 5.375 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.3406, allocations: 382.7 kB / 462 MB, free: 4.992 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004438/0.3411, allocations: 285.8 kB / 462.3 MB, free: 4.715 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005951/0.3417, allocations: 0.4955 MB / 462.8 MB, free: 4.117 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000543/0.3422, allocations: 372.6 kB / 463.1 MB, free: 3.75 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.3423, allocations: 0 / 463.1 MB, free: 3.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.002932/0.3452, allocations: 1.445 MB / 464.6 MB, free: 2.25 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.302e-05/0.3452, allocations: 11.12 kB / 464.6 MB, free: 2.242 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.283e-05/0.3452, allocations: 8 kB / 464.6 MB, free: 2.234 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001405/0.3467, allocations: 466.9 kB / 465 MB, free: 1.77 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004279/0.3471, allocations: 119.8 kB / 465.2 MB, free: 1.652 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009506/0.3566, allocations: 8.461 MB / 473.6 MB, free: 8.645 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006268/0.3573, allocations: 32.11 kB / 473.7 MB, free: 8.613 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.363e-05/0.3573, allocations: 32 kB / 473.7 MB, free: 8.582 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 57 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(2,100.0%) 9,(1,100.0%) 3} * Non-linear torn systems: 1 {2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0005073/0.3579, allocations: 309.5 kB / 474 MB, free: 8.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001213/0.358, allocations: 59.25 kB / 474 MB, free: 8.211 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002825/0.3608, allocations: 1.303 MB / 475.3 MB, free: 6.852 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.167e-06/0.3608, allocations: 8 kB / 475.4 MB, free: 6.844 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.732e-06/0.3609, allocations: 4 kB / 475.4 MB, free: 6.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.3609, allocations: 3.984 kB / 475.4 MB, free: 6.836 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004157/0.365, allocations: 2.252 MB / 477.6 MB, free: 4.465 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.123e-06/0.3651, allocations: 3.938 kB / 477.6 MB, free: 4.461 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003262/0.3654, allocations: 67.89 kB / 477.7 MB, free: 4.395 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001314/0.3667, allocations: 435.1 kB / 478.1 MB, free: 3.957 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.254e-05/0.3668, allocations: 12 kB / 478.1 MB, free: 3.945 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009614/0.3764, allocations: 8.176 MB / 486.3 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.828e-06/0.3764, allocations: 8 kB / 486.3 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003518/0.38, allocations: 1.84 MB / 488.1 MB, free: 9.309 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003996/0.3804, allocations: 204.4 kB / 488.3 MB, free: 9.09 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.701e-05/0.3805, allocations: 12 kB / 488.4 MB, free: 9.078 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003646/0.3809, allocations: 27.97 kB / 488.4 MB, free: 9.051 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001959/0.3811, allocations: 60.41 kB / 488.4 MB, free: 8.992 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.081e-05/0.3811, allocations: 16 kB / 488.5 MB, free: 8.977 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005257/0.3816, allocations: 366.8 kB / 488.8 MB, free: 8.621 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3817, allocations: 0 / 488.8 MB, free: 8.621 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001116/0.3828, allocations: 256 kB / 489.1 MB, free: 8.371 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (machine.rotor.w,machine.motor.phi_el) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.003745/0.3865, allocations: 2.423 MB / 491.5 MB, free: 5.852 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002235/0.3888, allocations: 1.334 MB / 492.8 MB, free: 4.469 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.3888, allocations: 4 kB / 492.8 MB, free: 4.465 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001284/0.3901, allocations: 0.9684 MB / 493.8 MB, free: 3.449 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009262/0.391, allocations: 177.9 kB / 494 MB, free: 3.281 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009169/0.4002, allocations: 5.291 MB / 499.3 MB, free: 13.78 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001042/0.4013, allocations: 1.056 MB / 0.4886 GB, free: 12.69 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00044/0.4017, allocations: 113.7 kB / 0.4887 GB, free: 12.58 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003729/0.4021, allocations: 263.3 kB / 0.4889 GB, free: 12.32 MB / 382.1 MB Notification: Performance of SimCode: time 6.51e-07/0.4021, allocations: 0 / 0.4889 GB, free: 12.32 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03828/0.4404, allocations: 20.35 MB / 0.5088 GB, free: 7.98 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001704/0.4406, allocations: 219.3 kB / 0.509 GB, free: 7.738 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.166/2.606, allocations: 0 / 0.509 GB, free: 7.738 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe 2>&1) Environment - environmentSimulation: